The moose likes Beginning Java and the fly likes Standard File Locations Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Standard File Locations" Watch "Standard File Locations" New topic
Author

Standard File Locations

Jim Ronholm
Greenhorn

Joined: Nov 15, 2002
Posts: 16

Is there an accepted convention for a standard Java file/directory structure. I'm thinking something like:
/project
/src
/docs
/classes
Maybe the compiled files should be the project directory - then if you were using packages they could start from this location.
(Couldn't find anything on this in the Chicken Coop.)
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I've never seen anybody claim a standard in this structure, but I have seen a few developers (and IDEs such as JBuilder) organize projects in a similar way. A test directory is also not uncommon.
If you really want to get organized (and impress those around you), you may want to head on over to The Object Oriented Scripting Forum and ask some questions about learning Ant. I know some of those automated project building guys are big on standard (though personalized) project directory structures.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: Standard File Locations
 
Threads others viewed
Ant Build...What does the values in basedir="" mean?
Open existing project in Eclipse
eclipse, open a file outside a project
Maven Project loading props file
Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture