LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Frostwire problems with JRE (https://www.linuxquestions.org/questions/linux-software-2/frostwire-problems-with-jre-595304/)

phantom_cyph 10-28-2007 04:19 PM

Frostwire problems with JRE
 
Frostwire wants JRE, so I install it. Problem is, it seems to want 1.4, when I have 1.5...what do I do?

Here is the error:

Quote:

Starting FrostWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. FrostWire 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.5.x or newer from http://www.java.com
Java exec found in /usr/java/jre1.6.0_03/bin/
Suitable java version found [/usr/java/jre1.6.0_03/bin/java = 1.6.0_03]
Configuring environment...
Loading FrostWire:
java.lang.UnsatisfiedLinkError: /usr/java/jre1.6.0_03/lib/i386/motif21/libmawt.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(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)

/usr/java/jre1.6.0_03/bin/
******************************************************************
Something went wrong with FrostWire.
Maybe you're using the wrong version of Java?
(FrostWire 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.5.0"
gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-27)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

brianL 10-29-2007 05:43 AM

Quote:

The version of Java in your PATH is:
java version "1.5.0"
gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-27)

Looks like you've got GNU Java and Sun JRE is needed. It wants any version after 1.4, so you're OK there. You have the right JRE (jre1.6.0_03), but it's either not in your PATH, or it's after the GNU.

osor 10-29-2007 10:46 AM

The frostwire run script will attempt to use Motif for AWT rendering, when in fact it can use X itself (this is as a safeguard for those users using compiz or something similar). Unfortunately, the GCJ distributors don’t always include a working, usable Motif library, so you’ll be unable to use it.

The fix should be simple: launch the java interpreter WITHOUT exporting the environment variable “AWT_TOOLKIT” with the value MToolkit. That is, somewhere in the run script there should be a line that looks like:
Code:

export AWT_TOOLKIT=MToolkit
The fix is to delete or comment that line.

With that, you should be able to use frostwire with GCJ.


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