Viewing and editing a project's Java build path

A project's Java build path can either be defined when creating the project with the New Wizard or later in the project's property dialog. The Java build path settings dialog is the same in both cases. To view and edit a project's Java build path,...

  1. Select the project you want to view or edit

  2. From the project's pop-up menu, select Properties

  3. Select the Java Build Path page

  4. Define the source entries for the build path on the Source page:

    • Click the Add Folder button to add source folders to the Java build path.
      The Remove button removes the selected folder(s) from the build path.
      Edit lets you modify the selected entry.

  5. On the Projects page, identify the other projects that are required for building this project. The list shows all the existing Java projects from the workbench. Note: Each selected project is automatically added to the list of referenced projects.

  6. On the Libraries page, define the libraries required by your project. Libraries come in different forms. There are buttons for adding a library in each form. By default, each Java project has a 'JRE System Library' entry on the build path. This entry stands for the workbench's default JRE.

  7. On the Order and Export page, define the Java build path order. The recommended ordering is to have source entries before the library entries and the required projects.

Related concepts

Java builder
Build classpath

Related tasks

Adding a JAR file to the build path
Adding a library folder to the build path
Adding a variable class path entry
Building a Java program
Working with build paths
Working with JREs

Related reference
Java Build path

Legal notices