Editing the build path

For an overview of the build path, see "EGL build path."

To include projects in the EGL build path:
  1. In the Project Explorer view, right-click a project to link to other projects; then click Properties. The Properties window opens.
  2. Select the EGL Build Path properties page.
  3. A list of all of the other projects in your workspace is displayed in the Projects tab. To add projects to the build path of the current project, click the check box beside each project.
  4. To put the projects in a different order or to export any of them, click the Order and Export tab and do as follows:
    • To change the position of a project in the build-path order, select the project and click Up or Down.
    • To export a project, select the check box of the project to export.
    • To manage all the projects at once, click the Select All or Deselect All button.
  5. Click OK.

If you are generating to Java™ and want to use parts in a referenced project at run time, you must make the referenced project available at run time. You can either add that project to the Java build path of the current project, or you can add the referenced project to your project as a JAR file.

To add a project to the Java build path of your project:
  1. In the Project Explorer view, right-click a project to link to other projects; then click Properties. The Properties window opens.
  2. Select the Java Build Path properties page.
  3. On the Java Build Path page, click Projects tab.
  4. Click Add,
  5. Select the check boxes of the projects to add and then click OK.
  6. Click OK again.
To add a referenced project as a JAR file:
  1. Right-click the project to use in your project and then click Export.
  2. In the Export window, expand Java and click JAR file.
  3. Click Next.
  4. Under Select the resources to export, select the check box of the project to export.
  5. In the JAR file field, specify the location of the JAR file.
  6. Click Finish.
  7. Right-click the project in which to use the referenced project and then click Properties.
  8. In the Properties window, click Java Build Path.
  9. Go to the Libraries tab.
  10. Click Add external JARs.
  11. Select the JAR file that you exported and click Open.
  12. Click OK.

Feedback