Eclipse - Default Java SE

About this task

Eclipse should be launched with the Java SE installed from the product installation CD. Because many products are Java -based, multiple Java SE installations may already exist on your system. The following steps ensure the correct Java SE is used.

Procedure

  1. Eclipse is launched from the eclipse.exe executable. Ensure the Java SE installed from the development CD is the first one on the Windows system path when launching Eclipse.1
  2. Once Eclipse is launched, select Window > Preferences.
  3. On the preferences dialog select Java, Installed JREs from the tree. The correct Java SE should be selected as the default.
  4. Click the Edit button.
  5. In Default VM Arguments enter -Xmx512M.

Results

Update Boot Class Path When Using the IBM WebSphere Java SDK: The following XML API jar files (shipped with the SDEJ) should be added to the boot class path if the IBM WebSphere Java SDK is being used.
  • %CURAMSDEJ%\lib\xalan-2.7.1.jar
  • %CURAMSDEJ%\lib\serializer-2.7.1.jar
  • %CURAMSDEJ%\lib\xerces-2.9.1.jar

The boot class path can be set as a JVM parameter. For example:

-Xbootclasspath/p: %CURAMSDEJ%\lib\xalan-2.7.1.jar; %CURAMSDEJ%\lib\serializer-2.7.1.jar;%CURAMSDEJ%\lib\xerces-2.9.1.jar

1 An alternative is to use the -vm command line argument to the eclipse.exe executable. Consult the Eclipse documentation for further details on its command line arguments.