2.1.2. Installing a BEA or IBM SDK
THIS RELEASE HAS BEEN CERTIFIED WITH THE SUN AND BEA JVMS
Currently Red Hat Application Stack is certified with the Sun JVM version 1.4.2 update 13 or later, 1.5.0 update 11 or later and the latest BEA JVM available through RHN. This may change in future releases.
With RHEL 4 U4 there are 1.4.2 and 1.5 versions of the IBM and BEA (JRockit) SDKs.
We have adopted the jpackage.org style for the packaging of our Java™ offerings. This requires that the jpackage-utils rpm be installed on your system. A JPackage-style JVM must be installed via up2date (see channel details below) and jpackage-utils will be automatically brought in as a dependency.
Install a Java SDK from RHN
Java SDKs are provided by the Red Hat Enterprise Linux 4 Extras channel for your Linux variant and architecture. The channel names are as follows:
rhel-arch-variant-4-extras
where:
arch = i386 or x86_64 variant = as, or es
The java-1.4.2-ibm, java-1.4.2-bea, java-1.5.0-ibm and java-1.5.0-bea SDKs are available from these channels. Make sure you also install the -devel subpackages.
There is no BEA JRockit JVM for the x86_64 architecture at this time, but the BEA i386 JVM will work on x86_64 and it is available from the x86_64 channel as well.
Selecting alternatives for java, javac and java_sdk_ (optional, where VERSIONVERSION = 1.4.2 or 1.5.0 depending on what version java java and javac are being set to)
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_ (where VERSIONVERSION = 1.4.2 or 1.5.0 depending on what version java java and javac are being set to). We recommend that all point to the same manufacturer and version.