NEWBIE: Eclipse standards for packages and directory structure?

Dear Experts,

I'm trying to set up my directory structure for multiple projects and packages under Eclipse.  There will be a one-to-one relationship between projects and packages.

I now have all my projects under the structure:

C:\com\MyCompany\projectA
C:\com\MyCompany\projectB

Under THOSE directories, how are source files and classes typically organized?  I had previously done this (under JBuilder):

C:\com\MyCompany\projectA\src
C:\com\MyCompany\projectA\classes

Eclipse seems to default to this:

C:\com\MyCompany\projectA\           (Source goes directly under "projectA")
C:\com\MyCompany\projectA\bin       ("bin" instead of "classes")

Is there a standard in general?  A standard for Eclipse?  

Thanks!
BrianMc1958







BrianMc1958Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
I would recommend you use small-case for all package-names (make it mycompany instead of MyCompany). In Eclipse, you can right-click on the Project, goto Java Build Path and configure the folder for source/ output using the Source (and other) tabs which you will find there. You can make it 'src' for source and 'classes' for classes. By default, I guess Eclipse uses the project-folder itself (I could be wrong). Maybe that in your case, somebody changed it to 'bin'.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> right-click on the Project, goto Java Build Path

In the Source tab, select whatever you have and click on Remove. Then click on "Add Folder". In the window which is shown, select "Create new folder", name it as 'src' and click on OK. In the default output folder shown below, change it to projectname\classes.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Another option is to goto Window -> Preferences -> Java -> Build Path and specify Source and Output folder there. The same settings will apply to all projects that you create in Eclipse (the above were only for one specific project).
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> There will be a one-to-one relationship between projects and packages.

You can have many packages inside a project.
0
All Courses

From novice to tech pro — start learning today.