LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-25-2006, 05:27 PM   #1
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Rep: Reputation: 15
Unhappy Limewire issue... Sun Jre conflicts with gcj? Or something else...


I installed LimeWireLinux.rpm on my machine (the latest version)... but when I try to run it I get the following feedback:


Starting LimeWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. LimeWire works best with Sun JRE available at http://www.java.com
OOPS, unable to locate java exec in /usr/lib/ hierarchy
You need to upgrade to JRE 1.4.x or newer from http://www.java.com
Java exec found in /usr/java/j2sdk1.4.2_13/bin/
Suitable java version found [/usr/java/j2sdk1.4.2_13/bin/java = 1.4.2_13]
Configuring environment...
Loading LimeWire:
java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_13/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)

******************************************************************
Something went wrong with LimeWire.
Maybe you're using the wrong version of Java?
(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)
The version of Java in your PATH is:
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20061011 (Red Hat 4.1.1-30)


This is the value of my PATH environment variable:

/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/java/j2re1.4.2_13

Now, from the feedback message, it seems to me like the Sun Java conflicts with GNU java... but, Limewire seems to know where the Sun Java is installed. This has never happened to me before... it always worked flawlessly - until now.

Has anyone experienced something like this? Can anyone please tell me what this is all about?
 
Old 11-25-2006, 06:07 PM   #2
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
http://www.stanton-finley.net/fedora...otes.html#Java
 
Old 11-26-2006, 05:04 PM   #3
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for the tip. But, this still doesn't solve my problem. This way I've only learned how to make another java implementation system default. This is the new feedback message I get in attempt to start Limewire:

# limewire
Starting LimeWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.4.2_13]
Configuring environment...
Loading LimeWire:
java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_13/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)

******************************************************************
Something went wrong with LimeWire.
Maybe you're using the wrong version of Java?
(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)
The version of Java in your PATH is:
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

I am trying to use J2RE contained in J2SDK, but it shouldn't make any difference, and besides, it works fine with Eclipse... Any ideas?
 
Old 11-26-2006, 05:26 PM   #4
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Original Poster
Rep: Reputation: 15
Now I've even tried to run Limewire with J2RE installed separately and making it the system default. Still get the same messages...
 
Old 11-27-2006, 03:05 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Install the jre 1.5 rpm from java.sun.com and then put the code below in /etc/profile.d. Name the script java.sh and make it executable
Code:
export JAVA_HOME=/usr/java/jre1.5.0_09
export MANPATH=$MANPATH:/usr/java/jre1.5.0_09/man
export PATH=/usr/java/jre1.5.0_09/bin:$PATH
After that logout and back in again. LimeWire should then use Sun JRE as the default java instead of gcj.
 
Old 11-27-2006, 07:17 AM   #6
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks, it worked! Does this mean new LimeWire isn't backward compatible with j2re1.4.2? Or was it something else?
 
Old 11-27-2006, 10:20 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by hans21
Thanks, it worked! Does this mean new LimeWire isn't backward compatible with j2re1.4.2? Or was it something else?
I've noticed that recent versions of some apps don't play along nicely with java 1.4.x so that could be the problem.
 
  


Reply



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
gcj instead of Sun's JRE. Good or bad? Mega Man X General 10 06-29-2006 12:57 PM
LimeWire, JRE, $PATH morte313 Linux - Software 5 08-25-2005 04:03 PM
Java (Sun, Eclipse, gcj, ...) rpz Linux - Software 3 08-08-2005 09:02 PM
Sun Java not GCJ untwisted Linux - Software 6 06-16-2005 04:18 PM
linking JRE 5.0 to firefox and limewire rpmheadache Linux - Software 16 02-21-2005 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

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