Support for multiple Java 2 Software Development Kits

Your iSeries™ server supports multiple versions of the Java™ Development Kits (JDKs) and the Java 2 Software Development Kit (J2SDK), Standard Edition.

Note: In this documentation, depending on the context, the term JDK refers to any supported version of the JDK and J2SDK. Usually, the context in which JDK occurs includes a reference to the specific version and release number.

Your iSeries server supports using multiple JDKs simultaneously, but only through multiple Java virtual machines. A single Java virtual machine runs one specified JDK.

Find the JDK that you are using or want to use, and select the coordinating option to install. See Install IBM Developer Kit for Java to install more than one JDK at one time. The java.version system property determines which JDK to run. Once a Java virtual machine is up and running, changing the java.version system property has no effect.

Note: In V5R3 and later, the following options are no longer available: Option 1 (JDK 1.1.6), Option 2 (JDK 1.1.7), Option 3 (JDK 1.2.2), and Option 4 (JDK 1.1.8). The following table lists the supported J2SDKs for this release.

Option JDK java.home java.version
5 1.3 /QIBM/ProdData/Java400/jdk13/ 1.3
6 1.4 /QIBM/ProdData/Java400/jdk14/ 1.4
Start of change7End of change Start of change1.5 (also referred to as J2SE 5.0)End of change Start of change/QIBM/ProdData/Java400/jdk15/End of change Start of change1.5End of change

The default JDK chosen in this multiple JDK environment depends on which 5722-JV1 Options are installed. The following table gives some examples.

Install Enter Result
Option 5 (1.3) java Hello J2SDK, Standard Edition, version 1.3 runs.
Option 6 (1.4) java Hello J2SDK, Standard Edition, version 1.4 runs.
Option 5 (1.3) and Option 6 (1.4) java Hello J2SDK, Standard Edition, version 1.4 runs.
Note: If you install only one JDK, the default JDK is the one you installed. If you install more than one JDK, the following order of precedence determines the default JDK:
  1. Option 6 (1.4)
  2. Option 5 (1.3)
  3. Start of changeOption 7 (1.5)End of change