PDA

View Full Version : A Java Mess



aipforum
10th April 2007, 11:46 AM
In trying to get Java installed for 1) the browser plugin, and 2) for programs such as Limewire ... I started by following one Fedora 6 tips webpage to get the plugin working. Got that done fine.

What proceeded was following the same tips webpage to get Java working for applications. That didn't work. So I went to another tips webpage. Followed their instructions. That didn't work either. So I tried yet a 3rd webpage that had completely different instructions. Needless to say, that didn't work.

All of this has resulted in a complete mess. The browser plugin now does not work anymore. And neither do any Java apps.

The questions:
1. How can I clean up this mess (uninstall the various Javas that I have)?
2. How can I get the Firefox plugin restored?
3. What set of instructions should I follow to get Java apps working?

Here are the results of java -version and configuring alternatives

I really would appreciate someone's help.

-- Brent
________________________________________________

[brent@localhost ~]$ java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
[brent@localhost ~]$ su
Password:
[root@localhost brent]# /usr/sbin/alternatives --config java

There are 6 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
* 2 /usr/java/jre1.5.0_11/bin/java
+ 3 /opt/jre1.6/bin/java
4 /opt/j2re1.4.2_14/bin/java
5 /usr/java/jre1.5.0_09/bin/java
6 /usr/java/jre1.5.0_09/binir/java

RogerHS
10th April 2007, 01:03 PM
rpm -qa|grep java -uninstall this packages
keep /opt/jre1.6/ (Sun java)
in our firefox plugin directory : ln -s /opt//jre1.6/plugin/i386/ns7/libjavaplugin_oji.so

ramasees
10th April 2007, 01:12 PM
Download the Java package from:
http://java.sun.com/javase/downloads/index.jsp
Select: Java Runtime Environment (JRE) 6u1
cd to directory where you downloaded it

sh jre-6u1-linux-i586.bin
(type 'yes')
sudo mv -f jre1.6* /opt/jre1.6
sudo ln -s /opt/jre1.6/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

yum -y install compat-libstdc++-33


this works fine for limewire etc the yum -y install compat-libstdc++-33 is important to install however you install for jave to work

RupertPupkin
10th April 2007, 03:41 PM
You should uninstall all the GNU Java-related packages (some of which don't have the word "java" in their name). See the 3rd post in this thread: http://forums.fedoraforum.org/showthread.php?t=152388