Use property dialogues

Java Build Path page

The options in this page indicate the build path settings for a Java project. You can reach this page through:

  1. the New Java Project wizard

  2. the Java Build Path property page (Project > Properties > Java Build Path) from the context menu on a created project or the File menu

The build class path is a list of paths visible to the compiler when building the project.

Source tab

Source folders 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. The output folder is defined per project except if a source folder specifies an own output folder. 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 also copied to the output folder unless the setting in the Compiler preference page (Window > Preferences > Java > Compiler > Build Path) specifies that the resource is filtered.

Source tab

Projects tab

In the Required projects on the build path list, you can add project dependencies by selecting other workbench projects to add to the build path for this new project. The Select All and Deselect All buttons can be used to add or remove all other projects to or from the build path.

Adding a required project indirectly adds all its classpath entries marked as 'exported'. Setting a classpath entry as exported is done in the Order and Export tab.

The projects selected here are automatically added to the referenced projects list. The referenced project list is used to determine the build order. A project is always build after all its referenced projects are built.

Projects tab

Libraries tab

On this page, you can add libraries to the build path. You can add:

JAR files can also be added indirectly as class path variables. By default, the library list contains an entry representing the Java runtime library. Typically this is a variable entry called JRE_LIB. This entry points to the JRE selected as the default JRE. The default JRE is configured in the Installed JREs preferences page (Window > Preferences > Java > Installed JREs).

Libraries tab

Order and Export tab

In the Build classpath order list, you can click the Up and Down buttons to move the selected path entry up or down in the build path order for this new project.

Checked list entries are marked as exported. Exported entries are visible to projects that require the project. Use the Select All and Deselect All to change the checked state of all entries. Source folders are always exported, and can not be deselected.

Order and Export tab

Build output folder

At the bottom of this page, the Build output folder field allows you to enter a path to a folder path where the compilation output for this project will reside. Use Browse to select an existing location from the current project. The default for this field is configured in the New Project preference page (Window > Preferences > Java > New Project).

Professional hosting     Belorussian informational portal         Free SCWCD 1.4 Study Guide     Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free Mock Exam Engine