| Jump Links |
| Version | ||
| Centos | Sun jdk or sdk used | Notes |
| 5 | j2sdk-1.4.2_09-fcs | OBSOLETE in 2008 PER IB |
| 4 | jdk-1.5.0_10-fcs | |
| 5 | jdk-6u5-linux | 32 bit CentOS installation |
| 5 | jdk-6u5-linux-x64 | 64 bit CentOS installation |
http://java.sun.com/products/archive/index.htmlwhich we point to, as it offers a full collection on one web page, of Sun's offerings over time. We do NOT recommend these in preference, but rather point out an easy to navigate archive.
http://java.sun.com/javase/downloads/index.jspOur purpose here is to help a person get a JDK installation set up under Linux, Once it is working, it is then appropriate to cut over to the latest.
[herrold@xeon Java]$ ls -1 *bin j2sdk-1_4_2_09-linux-i586-rpm.bin j2sdk-1_4_2_14-linux-i586-rpm.bin jdk-1_5_0_06-linux-i586-rpm.bin jdk-1_5_0_08-linux-i586-rpm.bin jdk-1_5_0_10-linux-i586-rpm.bin jdk-1_5_0_11-linux-i586-rpm.bin jdk-1_5_0_14-linux-i586.rpm jdk-6-linux-i586-rpm.bin jdk-6u1-linux-i586-rpm.bin jdk-6u2-linux-i586-rpm.bin jdk-6u3-linux-i586-rpm.bin jdk-6u4-linux-i586-rpm.bin jdk-6u5-linux-i586-rpm.bin jdk-6u5-linux-x64-rpm.bin
... perhaps pedantically, this stanza has to be before the 'unset pathmunge' (which removed the function) and also before the 'export PATH' in /etc/profile (which makes the revised PATH available later) as well.JAVA="" export JAVA="sun" export JPATH="/usr/java/jdk1.6.0_03" export JAVA_HOME="$JPATH" export CLASSPATH="$JPATH/bin" pathmunge $JPATH/bin before
so in our example, we would use the trimmed base directory path: /usr/java/j2sdk1.4.2_09 for that release of the SDK.[herrold@centos-4 ~]$ rpm -ql j2sdk | grep 'javac$' /usr/java/j2sdk1.4.2_09/bin/javac [herrold@centos-4 ~]$
and thereafter one no longer needs to edit /etc/profile, as new jdk are installed.JAVA="" export JAVA="sun" export JPATH="/usr/java/latest" export JAVA_HOME="$JPATH" export CLASSPATH="$JPATH/bin" pathmunge $JPATH/bin before
(The 'missing' files are from a haphazard upstream packaging, and are a harmless warning).[herrold@centos-4 ~]$ rpm -V j2sdk missing /usr/java/j2sdk1.4.2_09/jre/javaws/javaws.pack missing /usr/java/j2sdk1.4.2_09/jre/lib/charsets.pack missing /usr/java/j2sdk1.4.2_09/jre/lib/ext/localedata.pack missing /usr/java/j2sdk1.4.2_09/jre/lib/jsse.pack missing /usr/java/j2sdk1.4.2_09/jre/lib/plugin.pack missing /usr/java/j2sdk1.4.2_09/jre/lib/rt.pack missing /usr/java/j2sdk1.4.2_09/lib/tools.pack missing /usr/java/j2sdk1.4.2_09/lib/unpack [herrold@centos-4 ~]$
[herrold@centos-4 ~]$ rpm -ql j2sdk | grep plug | grep so$ /usr/java/j2sdk1.4.2_09/jre/lib/i386/libjavaplugin_jni.so /usr/java/j2sdk1.4.2_09/jre/plugin/i386/ns4/libjavaplugin.so /usr/java/j2sdk1.4.2_09/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/java/j2sdk1.4.2_09/jre/plugin/i386/ns610/libjavaplugin_oji.so [herrold@centos-4 ~]$
[herrold@centos-5 ~]$ . /etc/profile [herrold@centos-5 ~]$ java -version java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) [herrold@centos-5 ~]$
| See Also: | the Firefox instructions to similar effect |
| and we point here from the CentOS wiki on the topic |