Today, the 13/10/2004, I downloaded the final JDK 5 (1.5.0-b64) from Sun.
Mandrake 10.0 Official is shipped with a custom Java 1.4.2-03. So, the 26/06/2004, I already installed the beta Java 1.5.0-beta2 RPM from Sun.
The install from Sun or Mandrake are a little bit different :
- Sun RPM install directly in /usr/java/jdk1.5.0/. It will set up things for the system (mime type …) and for Gnome, nothing for KDE !?
- Mandrake RPM install in /usr/lib/jdk1.4.2-… AND they put symlink in /usr/lib/j2sdk… in /usr/java/… AND most important they put a script in /etc/profile.d/jdk1.4.2.sh to set up some environement variables. Here is the script adapted to Java 1.5.0 :
export JAVA_HOME=/usr/java/jdk1.5.0 export JDK_HOME=$JAVA_HOME export PATH="$PATH:$JAVA_HOME/bin" export MANPATH="$MANPATH:$JAVA_HOME/man"
rpm -q --scripts jdk
and the files it contains with
rpm -q -l jdk
Note that you must give the short name “jdk” and that the full name “jdk-1_5_0-linux-i586.rpm” won’t work !!!