Click
Tools > System Settings.
The
System Settings dialog box opens.
Click
Add next to the
Target JDK list box and browse for the Java Home Directory.
For example, the Sun JDK version 1.4 might be installed under
C:\j2sdk1.4.2_04. The IBM JDK version might be installed under
C:\WebSphere\AppServer\java.
Click
OK.
You can now select the added JDK version from any project.
Click
Tools > Project Settings.
The
Runtime tab of the
Project Settings dialog box opens.
Select the JDK from the
Assigned Runtime list box.
Click
OK.
The Java Runtime is now assigned to the current project.
Note: When you change the active JDK, the runtime process is restarted. Perform an animated run to update the objects in the runtime.