Adding a new JRE definition
In your workspace you can have any number of JRE definitions. You can also add as many JRE definitions as you want.
To add a new JRE definition:
- Open the
Java > Installed JREs preference page.
- Select the Add... button. The Create JRE dialog opens.
- In the JRE type field, select the type of JRE you want
to add from the drop-down list.
- In the JRE name field, type a name for the new JRE
definition. All JREs of the same type must have a unique name.
- In the JRE home directory field, click Home
Directory to select a path to the root directory of a JRE installation
(usually the directory containing the bin and lib
directories for the JRE). Or, click Definition File to select
a file describing an installed JRE (for example, an execution
environment definition file). You may also type a folder or file name
into this field.
- The default libraries appear for the JRE in the JRE system libraries list.
You can modify the libraries as desired.
- Source and javadoc locations can be specified for the referenced JARs.
The Javadoc location is used by the Javadoc export wizard as a default
value and by the 'Open External Javadoc' action.
- Jars can be added, removed, and reordered.
- Click OK when you are done.
Java development tools (JDT)

Working with JREs
Assigning the default JRE for the workbench

Installed JREs preference page