Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8583413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:31:55+00:00 2026-06-11T21:31:55+00:00

To date, I have always coded using a text editor, and compiling using CLI

  • 0

To date, I have always coded using a text editor, and compiling using CLI (Windows and Mac). This is the first time I’ve used an IDE, and I have chosen NetBeans. It is also the first time I have come across packages.

Would appreciate some guidance/direction on how to setup my project.

My project consists of:
– a Server app
– a Client app
– common objects

This is what I have done:

  1. Create a Project
  2. Under this project, I created three packages:
    • Server – source files specific only to my Server application
    • Client – source files specific only to my Client application
    • Common – common files shared by both Server and Client applications, such as RMISSLClientSocketFactory, remote interface and implementation, keystore files etc

Is this the right approach?

And also, what do I need to do to enable the Server all and Client app can call/access the classes in the Common package?

Many thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:31:56+00:00Added an answer on June 11, 2026 at 9:31 pm

    General convention would suggestion your top level package name should be the reverse of you companies web address (ie com.stackoverflow).

    Now not everybody has a company (or web address), in these cases you want to choice something that will (as well as possible) uniquely identify you package (the purpose of packages is to provide name space, so you can have more the one class with the same name and be able to differentiate between them, amongst other things).

    In may case I might choose to use mad.programmer for example…

    The next level should identify the application or library (I personally use things like .core and .core.ui for my core libraries, but you can make you own choices)

    At this point, you’re basically free to group as you see fit.

    Now, to the question at hand.

    In your case, I would create three projects. One being for the server code, one being for the client code and one for you common classes (which would be shared between the server and client).

    I would link the common project to your server and client projects (right click the Libraries node of the project (client and/or server) and select Add Project).

    Personally, I would use the .client, .server, .common suffixes to you package names just to separate the code but the only really requirement is to provide your common library with it’s own name space, separate from the server and client.

    So long as you haven’t changed any code that the sever and client rely-on to communicate (objects that might be passed between them at runtime), you can rebuild either project without affecting the other.

    That’s my take on it any way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Entity Framework 4.1 Code First. In my entity, I have three date/time
I have date 2012-04-02 10:01:00 am I want to show this date in with
I have date formatted in this way: 2010-02-04T00:00:00 I use this code to parse
I have a date in String format, mm/dd/yyyy I want to convert this to
I have a date in XML: <time>1340517600</time> How can I convert it to a
I have to copy the text from one text box to another using checkbox
I have a set of buttons that, when clicked, should select the first text
I have a DatePicker in my app, i'm using this code to retrieve its
I have a control that is a date picker with validation using HTML5's pattern
I have this code & I've tired using JQuery's appendTo() function to get this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.