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 Opens the Installed JREs preference page 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, 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.
  6. The default libraries appear for the JRE in the JRE system libraries list. You can modify the libraries as desired.
  7. Click OK when you are done.

Related concepts
Java development tools (JDT)

Related tasks
Working with JREs
Assigning the default JRE for the workbench

Related reference
Installed JREs preference page