Adding a New JRE Definition

You can add any number of JRE definitions.

1.

From the menu bar, select Window > Preferences > Java > Installed JREs.

2.

Click the Add button.

3.

The Add JRE dialog appears.

4.

In the JRE Types drop-down menu, select the type of JRE you want to add.

5.

In the JRE Name field, type a name for the new JRE definition. All JREs of the same type must have a unique name.

6.

In the JRE Home Directory field, type or click Browse to select the path to the root directory of the JRE installation (usually the directory containing the bin and lib directories for the JRE). This location is checked automatically to make sure it is a valid path.

7.

In the Debugger timeout field, type the number of ms for the debugger to wait for a connection to this JRE.

Note: The debugger uses this value when communicating with a VM (e.g., to get the values of variables). The timeout value is only used after the debugger has connected to the VM; it has no effect on the launching of the debug VM.

8.

If you want to use the default libraries for the JAR and source files for this JRE, leave the Use default libraries box checked. Otherwise, deselect it and either type or click Browse to select these two files.

See Overriding the Default System Libraries for a JRE Definition

9.

Click OK when you are done.