The Java Runtime Environment (JRE) is used to compile and run your projects in the Developer Studio.
For applications that are deployed on a server, the JRE version of the Developer Studio (Designtime) has to match the Java VM version your server is running with (Runtime). Common JRE related tasks in the Developer Studio are:
Adding Additional JRE
- Choose the command Window → Preferences → Java → Installed JREs.
- Choose Add…
- Specify the type of the installed JRE and choose Next.
- In the JRE name input field provide a name for the JRE you are adding.
- Choose Browse… to select the root folder of the JRE.
- Choose OK to finish the procedure.
The JRE is loaded and the Installed JREs dialog window is displayed again.
- To activate the added JRE activate the checkbox next to the added JRE.
Setting Compiler Options
Compiler options allow you to define JDK compliance levels. So you can use for example a Java SE 6 version to compile the sources Java 1.4 compliant.
- Choose the command Window → Preferences → Java → Compiler.
- Adjust the Compiler compliance level.
- Optional: Check the other options in the dialog window and adjust if necessary.
- Choose OK to finish the procedure.
The projects on your workbench are rebuilt automatically.
Project Specific Compiler Options
You can set compiler options for a project with the following steps:
- Choose the project in the Package Explorer with the right mouse button.
- Choose Properties in the context menu.
- Enable checkbox Enable project specific settings.
- Adjust the settings accordingly.
- Choose OK to finish the procedure.
The project is rebuilt automatically.