Instead of using the default JRE for running and debugging all Java programs in the workbench, you can specifically assign a JRE for launching an individual project.
See Assigning the Default JRE for the Workbench
1. |
In the Packages view, select the Java project. |
2. |
From its context menu, select Properties. |
3. |
Select the JRE properties page. |
4. |
Click the Use custom JRE for launching button. |
5. |
In the list of available JREs, select the JRE you want to use to launch this project. ![]() |
6. |
Click OK. |
Note: Changing the JRE used for running doesn't affect the way Java source is compiled. You can adjust the build path (see: setting the build path for a project) to compile against custom libraries.