Java development user guide > Tasks > Working with JREs

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 Add JRE wizard opens.
  3. You will have to select the type of JRE you would like to create:

Standard VM:

  1. In the JRE home field, click Browse... to select a path to the root directory of a JRE installation (usually the directory containing the bin and lib directories for the JRE). You may also type a folder name into this field.
  2. In the JRE name field, type a name for the new JRE definition. All JREs of the same type must have a unique name.
  3. In the Default VM Arguments field, you can add/edit the default arguments that will be passed to the VM when launching.
  4. The default libraries appear for the JRE in the JRE system libraries list. You can modify the libraries as desired.
  5. Click Finish when you are done.
Add Standard VM JRE

Standard 1.1.x VM:

Follow the same steps as for Standard VM JREs.

Execution Environment Files:

For more information on EE File structure see the Wiki Page.

  1. In the Definition home directory field, click File... to select a execution environment description file to load the JRE installation from. You may also type a file path into this field.
  2. In the JRE name field, type a name for the new JRE definition. All JREs of the same type must have a unique name.
  3. In the Default VM Arguments field, you can add/edit the default arguments that will be passed to the VM when launching.
  4. The default libraries appear for the JRE in the JRE system libraries list. You can modify the libraries as desired.
  5. Click Finish when you are done.
Add EE File JRE

Related concepts

Java development tools (JDT)

Related tasks

Working with JREs
Deleting a JRE definition
Choosing a default JRE
Choosing a JRE for launching a project

Related reference

Installed JREs preference page