10. Installing the IBM Developer Kit for Java

This section gives you quick and dirty instructions on how to install the IBM Developer Kit for Java, version 1.1.8. You need this version to run the DB2 Control Center or Java applications or applets that connect to DB2. Note that these instructions are not meant to replace the documentation supplied with the IBM Developer Kit for Java.

Warning

For DB2 Version 7.1, you cannot use other versions of Java. Versions of the Java Virtual Machine (JVM) supplied by other software organizations are not supported, and even later versions of the IBM Developer Kit for Java, such as JDK 1.3.x, are not supported.

Installing the IBM Developer Kit for Java

  1. Download the IBM Developer Kit for Java, version 1.1.8, from the IBM Java Developer's Kit downloads web site. I'll assume that you download the RPM package of the IBM Developer Kit for Java.

  2. Install the IBM Developer Kit for Java by issuing the following command as root:
    bash# rpm -ivh IBMJava118-SDK-1.1.8-2.0-i386.rpm

  3. Add the following lines to your /etc/profile file to set up the Java environment for all users:
       export JAVA_HOME=/usr/jdk118
       export PATH=$PATH:$JAVA_HOME/bin
       export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/classes.zip

    Note: Caldera users should see Section 3.1.1 for instructions on configuring the IBM Developer Kit for Java on Caldera OpenLinux.