Java on Linux

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/ 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"

You can get usefull info from Mandrake’s KnowledgeBase and Mozilla/Firefox plugin doc.
I will check the SRPMS from JPackage too !
You can find what a RPM package do with

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 !!!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: