# 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:

1. Open the Java > Installed JREs preference page.
2. Select the Add... button. The Create JRE dialog opens.
3. In the JRE type field, select the type of JRE you want to add from the drop-down list.
4. In the JRE name field, type a name for the new JRE definition. All JREs of the same type must have a unique name.
5. 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.
6. 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.

7. Click OK when you are done.

Java development tools (JDT)

Working with JREs
Assigning the default JRE for the workbench

Installed JREs preference page