The New Java Project wizard helps you create a new Java project in the workbench.
|Project name||Type a name for the new project.||<blank>|
When 'Use default location' is selected, the New Project Wizard will create a new project with the specified name in the workspace.
Otherwise, you can specify the location from which the New Java Project Wizard will retrieve an existing Java project. In this case the wizard will analyze the existing project and set up the build path automatically. Click on Browse... to browse for a location of an existing Java project.
||Use default JRE|
||Create separate folders for sources and class files|
||Depends on the context from which the wizard has been started|
You can skip this page by pressing Finish on the first page. Otherwise press Next to configure the Java build path.The Java build path consist of source, library and project entries. The user interface is the same as for the Build Path property page, except for the source tab:
Source folders are top-level folders in the project hierarchy. They are the root of packages containing .java files. The compiler will translate the contained files to .class files that will be written to the output folder.
Source folders allow to structure the project, for example to separate test from the application in two source folders. Within a source folder, a more detailed structuring can be achieved by using packages.
Each source folder can define an exclusion filter to specify which resources inside the folder should not be visible to the compiler.
Resources existing in source folders are copied to the output folder unless the setting in the Java > Compiler > Building preference page specifies that the resource is filtered. The output folder is defined per project except if a source folder specifies its own output folder.
The tree shows the project as it will look like when switching to the package explorer. Several operations can be executed on this tree to change the structure of the project.
|Add source folder||Add a folder to the Java build path as source folder.|
|Link additional source to project||Add a link to a folder in the file system as source folder to the Java build path.|
|Remove from buildpath||Remove a source folder from the Java build path and change it into a normal folder.|
|Exclude||Add a resource to the exclusion filter of its parent source folder. The excluded resource and all its children are no longer visible to the compiler.|
|Include||Includes a previously excluded resource.|
|Configure source folder properties||
The edit source folder property menu has two actions
|Undo all changes||All changes that have been applied to the project in this wizard will be withdrawn and the original state of the project is reconstructed.|
|Allow output folders for source folders||If enabled, each source folder can have its own output folder. Otherwise all source folders will use the default output folder.|
A shorter description of all operations is visible in the Details pane below the project tree.