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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.