JAVA installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 10: | 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