Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-21-2007, 02:36 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
How to upgrade Firefox Java JRE to 1.5.0_10 on SuSE 9.3?

Hi folks,

I am running a pretty vanilla installation of SuSE 9.3 and want to upgrade the JRE for Firefox from the 1.4.x that comes with the distribution to jre-1_5_0_10 (jre-1_5_0_10-linux-i586-rpm.bin, which I got from Sun's site). Note I'm not sure this is the right rpm to install but it's all I've found so far.

I found installation instructions here:

These instructions appear to be for upgrading the JRE for mozilla, not firefox. Can anyone point me to good instructions for upgrading the JRE for firefox on SuSE 9.3? The instructions at the above link involve making symbolic links to a shared object library so since they don't appear to be relevant for firefox and as I didn't want to mess up my system, I didn't perform any of the actions. I'd love to hear from someone who has successfully upgraded the JRE on SuSE 9.3 to version 1.5.0, thanks in advance.

Old 01-22-2007, 03:16 PM   #2
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
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 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 :
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 :
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/'.
For example I get for the file :
#    /etc/profile.d/
# send feedback to

# 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
    export JRE_HOME=/usr/lib/java
  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
      export JDK_HOME=/usr/lib/java
      export SDK_HOME=/usr/lib/java
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
5) To change the Firefox plugin do as root :
cd /opt/firefox/plugins
ln -s /usr/java/jre1.6.0/plugin/i386/ns7/
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.

Last edited by berbae; 01-22-2007 at 03:22 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
issue with java JRE in SUSE Lasker SUSE / openSUSE 5 06-26-2005 11:49 AM
JRE suse x64 and firefox error gman_O0O0 SUSE / openSUSE 2 04-09-2005 02:43 PM
java jre luap Linux - Software 5 02-16-2003 11:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration