Hi jackalista
I can tell you how I upgrade the java JRE in my system which is a tweaked SUSE Linux with Firefox as a browser :
1) The last version is called "Java Runtime Environment (JRE) 6"
see
http://java.sun.com to download the Linux RPM in self extracting file.
the name of this file is 'jre-6-linux-i586.rpm.bin'
2) to extract the binary rpm do in a console as user login :
Code:
cd <download directory>
chmod 755 jre-6-linux-i586.rpm.bin
./jre-6-linux-i586.rpm.bin -x
rm jre-6-linux-i586.rpm.bin
you get the binary rpm file 'jre-6-linux-i586.rpm'
3) to upgrade to this new version do in a console as root login :
Code:
cd <download directory>
rpm -Uvh jre-6-linux-i586.rpm
You can have several java JRE versions on your machine, so you can keep the original 1.4 version installed.
4) to use the new version :
I change as root the environment variables in the files '/etc/profile.d/alljava.csh' and '/etc/profile.d/alljava.sh'.
For example I get for the file alljava.sh :
Code:
# /etc/profile.d/alljava.sh
#
# send feedback to http://www.suse.de/feedback
#
# This script sets some environment variables for default java.
# Affected variables: PATH, JAVA_BINDIR, JAVA_HOME, JRE_HOME,
# JDK_HOME, SDK_HOME
#
if [ -x /usr/lib/java/bin/java ] || [ -x /usr/lib/java/bin/jre ] ; then
export PATH=$PATH:/usr/lib/java/bin
export JAVA_BINDIR=/usr/lib/java/bin
export JAVA_ROOT=/usr/lib/java
export JAVA_HOME=/usr/lib/java
if [ -x /usr/lib/java/jre/bin/java ] ; then
export JRE_HOME=/usr/lib/java/jre
else
export JRE_HOME=/usr/lib/java
fi
unset JDK_HOME
unset SDK_HOME
if [ -x /usr/lib/java/bin/javac ] ; then
# it is development kit
if [ -x /usr/lib/java/bin/jre ] ; then
export JDK_HOME=/usr/lib/java
else
export JDK_HOME=/usr/lib/java
export SDK_HOME=/usr/lib/java
fi
fi
elif [ -x /usr/java/jre1.6.0/bin/java ] ; then
# it is IBMJava2-JRE or SunJava2-JRE
export PATH=$PATH:/usr/java/jre1.6.0/bin
export JAVA_BINDIR=/usr/java/jre1.6.0/bin
export JAVA_ROOT=/usr/java
export JAVA_HOME=/usr/java/jre1.6.0
export JRE_HOME=/usr/java/jre1.6.0
unset JDK_HOME
unset SDK_HOME
elif [ -x /usr/lib/java/jre/bin/java ] ; then
# it is IBMJava2-JRE or SunJava2-JRE
export PATH=$PATH:/usr/lib/java/jre/bin
export JAVA_BINDIR=/usr/lib/java/jre/bin
export JAVA_ROOT=/usr/lib/java
export JAVA_HOME=/usr/lib/java/jre
export JRE_HOME=/usr/lib/java/jre
unset JDK_HOME
unset SDK_HOME
fi
5) To change the Firefox plugin do as root :
Code:
cd /opt/firefox/plugins
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so
Your Firefox installation directory may be another one, as I installed mine from the Mozilla binary tarball.
6) Do a logout/login
This method works well for me, I have no problem with the new Java JRE version.
Have an nice day.