The default JRE is used for compiling and launching Java programs in all projects unless you specifically override the default JRE choice by removing the JRE-LIB variable from the build path or setting a custom runtime JRE for an individual project.
1. |
From the menu bar, select Window > Preferences > Java > Installed JREs. |
2. |
Check the box on the line for the JRE that you want to assign as the default in the workbench. If the JRE you want to assign as the default does not appear in the list, you first must add it. See Adding a New JRE Definition |
3. |
Click OK when you are done. |
Note: The JRE_LIB, JRE_SRC and JRE_SRCPATH system variables are automatically updated when you change the default JRE. This may cause a build to occur when you have autobuild enabled (Window > Preferences > Workbench). A preview of the new values is shown in the lower part of the Installed JREs preferences page.