BrianMc1958
asked on
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
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\
C:\com\MyCompany\projectA\
Eclipse seems to default to this:
C:\com\MyCompany\projectA\
C:\com\MyCompany\projectA\
Is there a standard in general? A standard for Eclipse?
Thanks!
BrianMc1958
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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).
>> There will be a one-to-one relationship between projects and packages.
You can have many packages inside a project.
You can have many packages inside a project.
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.