This topic tells how to edit the EGL build path. For background
information, see “The EGL build path.”
To include projects in the EGL build path, follow these steps:
- In the Project Explorer view, right-click a project that you want
to link to other projects and then click Properties.
The Properties window opens.
- Select the EGL Build Path properties page.
- A list of all other projects in your workspace is displayed on
the Projects page. Select the check box beside
each project that you want to add to the project's build path. For
example, if you want to access a project that includes the EGLAR file,
specify the project on the Projects page.
- If you want to access a stand-alone EGLAR file or a library that
contains multiple EGLAR files, specify it on the EGLAR
file page:
- If the stand-alone EGLAR file is in a non-binary project, do as
follows:
- Click Add EGLAR files. The EGL Selection
page is displayed with a list of all the projects that hold EGLAR
files.
- Expand the project names and click the names of the EGLAR files
of interest. You can select multiple names by holding down the Ctrl
key during name selection.
- Click OK.
- If the EGLAR file is in the file system, do as follows:
- Click Add External EGLAR files. The EGL
Selection page is displayed for you to find one or more files in the
file system.
- Click the names of the EGLAR files of interest. You can select
multiple names by holding down the Ctrl key during name selection.
- Click OK.
- If you want to add a library, do as follows:
- Click Add Library. The Add Library page
is displayed with all user defined libraries listed.
- Select the check box beside the library that you want to add.
You can select multiple libraries, but you cannot select the library
that is already on the build path.
- Click Finish.
- To place projects and EGLAR files 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 the Up and Down buttons.
- To export a project or EGLAR file, select the related check box.
To handle all the resources at once, click the Select All or Deselect
All button.
- Click OK.
Incidentally, if you are generating to Java™ and want to reference other Java code, you can add a project or JAR file
to the Java build path of the
project that receives the EGL-generated Java output.
To add a project to the Java build
path of a project:
- In the Project Explorer view, right-click a project that you want
to link to other projects and then click Properties.
The Properties window opens.
- Select the Java Build Path properties page.
- On the Java Build Path page,
click Projects tab.
- Click Add,
- Select the check boxes next to the projects that you want to add
and then click OK.
- Click OK again.
Follow these steps to add a referenced project as a JAR file:
- Right-click the project that you want to use in your project and
then click Export.
- In the Export window, expand Java and click JAR
file.
- Click Next.
- Under Select the resources to export, select
the check box next to the project that you want to export.
- In the JAR file field, set the location
for the JAR file.
- Click Finish.
- Right-click the project in which you want to use the referenced
project and then click Properties.
- In the Properties window, click Java Build Path.
- Go to the Libraries tab.
- Click Add external JARs.
- Select the JAR file that you exported and click Open.
- Click OK.