organize a project's source folders in such a way that:
- all source files are stored in the src folder
- all configuration files such as xml, properties, and conf files are stored in the conf folder
- all compiled classes are put in the bin folder
- exported jar file(s) are stored in the dist folder
- project specific configuration files (i.e. .jardesc, manifest.mf) are stored in the etc folder
==========
- right click Package Explorer and select New>Create a New Project
- select Java Project and click Next
- specify the project's name and make sure Create separate source and output folders is selected in the Project Layout panel
- click Next
- click the Create new source folder link and create the src and conf folders
- click Finish
- right click the project name and add the bin, dist, etc folders
- create a new manifest file in the etc folder and name it manifest.mf
- make sure ". conf" is part of the Class-path so that configuration files stored in it can be accessed by your classes
No comments:
Post a Comment