JAVA installation: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
 
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
RHEL4 came with JAVA installed in /etc/alternatives, several symbolic links exist from /usr/bin. That JAVA gave errors compiling our programs, so we decided to install Sun version 1.5.0_06 (the same we have on Solaris machines). Maybe RHEL4 version is fine, just too peaky. Anyway following was done:
Solaris 10 update 2 comes with jdk-1_5_0_06, update 3 comes with jdk-1_5_0_07, and both of them are working for all our applications all right.


* 'jdk-jdk-1_5_0_06-*' files (for all supported platforms just in case) were downloaded from Sun web site to ''/usr/local/downloads''
RHEL4 came with 'jre-1.5.0-ibm' installed in /etc/alternatives, several symbolic links exist from /usr/bin. That JAVA gives errors compiling our programs, so we decided to install Sun version 1.5.0_06 (the same we have on Solaris machines). Maybe RHEL4 version is fine, just too peaky. Anyway following was done:
 
* 'jdk-1_5_0_06-*' files (for all supported platforms just in case) were downloaded from Sun web site to ''/usr/local/downloads''


* file 'jdk-1_5_0_06-linux-i586.bin' was copied to ''/apps'', and following commands executed:
* file 'jdk-1_5_0_06-linux-i586.bin' was copied to ''/apps'', and following commands executed:
Line 8: Line 10:
  ./jdk-1_5_0_06-linux-i586.bin
  ./jdk-1_5_0_06-linux-i586.bin
  rm jdk-1_5_0_06-linux-i586.bin
  rm jdk-1_5_0_06-linux-i586.bin
* the number of symbolic links were hiden:
mv /usr/bin/jar /usr/bin/jar.hide
mv /usr/bin/java /usr/bin/java.hide
mv /usr/bin/javac /usr/bin/javac.hide
mv /usr/bin/javadoc /usr/bin/javadoc.hide
mv /usr/bin/javah /usr/bin/javah.hide
* and new links were created:
cd /usr/bin
ln -s /apps/jdk1.6.0_26/bin/jar jar
ln -s /apps/jdk1.6.0_26/bin/java java
ln -s /apps/jdk1.6.0_26/bin/javac javac
ln -s /apps/jdk1.6.0_26/bin/javadoc javadoc
ln -s /apps/jdk1.6.0_26/bin/javah javah
OLD:
  cd /usr/bin
  ln -s /apps/jdk1.5.0_06/bin/jar jar
  ln -s /apps/jdk1.5.0_06/bin/java java
  ln -s /apps/jdk1.5.0_06/bin/javac javac
  ln -s /apps/jdk1.5.0_06/bin/javadoc javadoc
  ln -s /apps/jdk1.5.0_06/bin/javah javah
* symbolic link operation have to be repeated on all RHEL4 machines

Latest revision as of 15:35, 21 February 2012

Solaris 10 update 2 comes with jdk-1_5_0_06, update 3 comes with jdk-1_5_0_07, and both of them are working for all our applications all right.

RHEL4 came with 'jre-1.5.0-ibm' installed in /etc/alternatives, several symbolic links exist from /usr/bin. That JAVA gives errors compiling our programs, so we decided to install Sun version 1.5.0_06 (the same we have on Solaris machines). Maybe RHEL4 version is fine, just too peaky. Anyway following was done:

  • 'jdk-1_5_0_06-*' files (for all supported platforms just in case) were downloaded from Sun web site to /usr/local/downloads
  • file 'jdk-1_5_0_06-linux-i586.bin' was copied to /apps, and following commands executed:
chmod 775 jdk-1_5_0_06-linux-i586.bin
./jdk-1_5_0_06-linux-i586.bin
rm jdk-1_5_0_06-linux-i586.bin
  • the number of symbolic links were hiden:
mv /usr/bin/jar /usr/bin/jar.hide
mv /usr/bin/java /usr/bin/java.hide
mv /usr/bin/javac /usr/bin/javac.hide
mv /usr/bin/javadoc /usr/bin/javadoc.hide
mv /usr/bin/javah /usr/bin/javah.hide
  • and new links were created:
cd /usr/bin
ln -s /apps/jdk1.6.0_26/bin/jar jar
ln -s /apps/jdk1.6.0_26/bin/java java
ln -s /apps/jdk1.6.0_26/bin/javac javac
ln -s /apps/jdk1.6.0_26/bin/javadoc javadoc
ln -s /apps/jdk1.6.0_26/bin/javah javah
OLD:
  cd /usr/bin
  ln -s /apps/jdk1.5.0_06/bin/jar jar
  ln -s /apps/jdk1.5.0_06/bin/java java
  ln -s /apps/jdk1.5.0_06/bin/javac javac
  ln -s /apps/jdk1.5.0_06/bin/javadoc javadoc
  ln -s /apps/jdk1.5.0_06/bin/javah javah
  • symbolic link operation have to be repeated on all RHEL4 machines