2.1.1.  Installing a BEA, IBM or Sun SDK

2.1.1.  Installing a BEA, IBM or Sun SDK

  1. Install a Java SDK from RHN

    Java SDKs are provided by the Red Hat Enterprise Linux 5 Supplementary channel for your Linux variant and architecture. Depending on the architecture, the channel names are:

    rhel-i386-server-supplementary-5 and rhel-x86_64-server-supplementary-5

    The java-1.5.0-bea, java-1.5.0-ibm and java-1.5.0-sun SDKs are available from these channels. Make sure you also install the -devel subpackages.

  2. Selecting alternatives for java, javac and java_sdk_1.5.0 (setting java_sdk_1.5.0 is optional).

    This is only needed if you want to use the SysV service script and/or want this installed SDK to be the default java and javac in the system. This choice can often be overridden by setting the JAVA_HOME environment variable.

    The alternatives system allows different versions of Java, from different sources to co-exist on your system. You should make sure the desired one is selected so that the service script uses the one you want.

    As root, issue the following command:

    /usr/sbin/alternatives --config java
    

    and make sure the desired one is selected (marked with a '+'), or select it by entering its number as prompted.

    Make sure you do the same for javac and java_sdk_1.5.0. We recommend that all point to the same manufacturer and version.