Home

 

Pluggable Java Runtime Environment (JRE)

RAD v7.5 enables you to run Java projects under different versions of the Java Runtime Environment. New JREs can be added to the workspace, and projects can be configured to use any of the JREs available. By default, the Application Developer v7.5 uses and provides projects with support for IBM Java Runtime Environment v6.0.

To add another JRE to the workspace, do these steps:

Select Window Æ Preferences and in the Preferences dialog, select
Java Æ Installed JREs.

Click Add to add a new JRE to the workspace.

Click Browse and select the home directory of the JRE you want to use.

Click OK. The new added JRE is now available in the list. By default, the selected JRE is added to the build path of newly created Java projects.

The JRE that is used to run a program can also be selected in the Run Configurations dialog (Figure | -34):

Select Run Æ Run Configurations.

Select an existing Java application run configuration.

Select the JRE tab, select Alternate JRE, and change the JRE.

Figure 8-34 Run Configurations JRE tab

ibm.com/redbooks