Fedora 7 and Java 1.6 -- does nothing

Need help and support? Post your problems and questions here.

Moderators: et voilà, Efrain, gubatron, spuggy, nonproffessional, ianw, FTA, Calliope, Casper67, cootmaster, Only A Hobo

Fedora 7 and Java 1.6 -- does nothing

Postby benrr101 » Wed Feb 13, 2008 5:09 pm

I recently installed Frostwire, but I have a problem. It appears to do nothing, but when I run it from the terminal, I get:

Loading FrostWire:
java.lang.UnsatisfiedLinkError: /usr/java/jdk1.6.0_04/jre/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(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1594)
at java.awt.Toolkit.<clinit>(Toolkit.java:1616)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)


******************************************************************
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.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)


it sounds like it's looking for java, but can't find a certain file. I confirmed that the file they want does indeed not exist, but I have the latest of Sun's Java kit. What have I done wrong?
benrr101
Member
 
Posts: 2
Joined: Wed Feb 13, 2008 4:40 pm

Same problem

Postby L Parker » Thu Feb 14, 2008 6:58 pm

I get the exact same error, with the only difference being I have Java 1.5 installed.

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)


Just speculation, but isn't libXP.so for Windows XP operating systems?
L Parker
Member
 
Posts: 4
Joined: Thu Feb 14, 2008 6:49 pm
Location: Florida

Postby Negative » Sun Apr 13, 2008 9:00 am

The answer lies within a dependency that isn't called for by the installer package.

Open Terminal
type: "su" to switch user to root (no quotes)
type root password
type: "yum install lesstif" (again no quotes)
When prompted type "y" to install
Once complete type "frostwire" (once again no quotes) to launch the application for the first time. Please note to change the download shared folder to a folder in your home directory. The default will be /root/shared/ And unless you want to log in and out to access your root folders, just change this during set up :)

From then on, you should find the FW icon/shortcut in Applications>>Internet

Enjoy.
Negative
Member
 
Posts: 1
Joined: Sun Apr 13, 2008 8:55 am
Location: Dark Side

Postby benrr101 » Tue Apr 15, 2008 7:10 pm

THANK YOU! You are an amazing genius!
benrr101
Member
 
Posts: 2
Joined: Wed Feb 13, 2008 4:40 pm

Postby Only A Hobo » Wed Apr 16, 2008 3:34 pm

Welcome to the forums and thanks a lot for your input Negative :)
User avatar
Only A Hobo
Moderator
 
Posts: 4864
Joined: Wed Mar 29, 2006 9:04 am
Location: Just Visiting

Re: Fedora 7 and Java 1.6 -- does nothing

Postby Misterfixit » Wed May 07, 2008 8:07 pm

What's up with this, then?
Apt-get returned nothing to satisfy necessary library:
Starting FrostWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.6.0]
Configuring environment...
Loading FrostWire:
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/motif21/libmawt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
at java.awt.Toolkit.<clinit>(Toolkit.java:1632)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)


******************************************************************
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.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)


This is really tedious.
Misterfixit
Member
 
Posts: 16
Joined: Tue Jun 19, 2007 7:26 pm

Re:

Postby stienjo » Sat May 10, 2008 4:11 pm

Negative wrote:The answer lies within a dependency that isn't called for by the installer package.

Open Terminal
type: "su" to switch user to root (no quotes)
type root password
type: "yum install lesstif" (again no quotes)
When prompted type "y" to install
Once complete type "frostwire" (once again no quotes) to launch the application for the first time. Please note to change the download shared folder to a folder in your home directory. The default will be /root/shared/ And unless you want to log in and out to access your root folders, just change this during set up :)

From then on, you should find the FW icon/shortcut in Applications>>Internet

Enjoy.


stienjo@stienjo-desktop:~$ sudo yum install lesstif
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.
This is my log can someone help me?

thankz
stienjo
Member
 
Posts: 1
Joined: Sat May 10, 2008 4:09 pm

Re: Re:

Postby fw » Tue May 13, 2008 10:31 pm

stienjo wrote:stienjo@stienjo-desktop:~$ sudo yum install lesstif
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.
This is my log can someone help me?

thankz


I don't understand why you are trying to use yum when it appears you have an ubuntu machine. If I am correct, you should be using apt-get and the package to install should be lesstif2.
"They who would give up an essential liberty for temporary security, deserve neither liberty or security" Ben Franklin

"Don't let people take away your rights just because you're scared." Judge Joe Brown
fw
Member
 
Posts: 389
Joined: Wed Jun 21, 2006 2:36 am
Location: SC, USA

Re: Fedora 7 and Java 1.6 -- does nothing

Postby Reindeer » Tue Jan 13, 2009 3:00 am

Misterfixit wrote:What's up with this, then?
...
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/motif21/libmawt.so
...
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode).


You have a different problem.

Your version of Java is having a problem finding a shared object file, or a linker error.
That could be because:

1. You are running a 64bit version of Fedora and need to install compatibility libs.
Search on libcompat32 for your system in Sourceforge.net to find them and install them with the package manager for your system, in this case yum. You know: # yum install libcompat32
Get the exact filename. I can't recall off of the top of my head. I'm sure someone will chime in and correct me here.

2. The links to your libs may be broken. Have you looked to see if you even have the lib directory that the program is looking for? If not, then there is a problem there. The links won't work if the files and dirs aren't there.

3. The program does not work with that version of Java. Point it to another version in the file in /usr/lib/runFrostwire.sh and edit the section that points to Java to point only to the working version. Backup the original file before doing this (as root). I noticed that you are using a 64bit version of Java. Maybe that's the problem. It was for me.

My /usr/lib/runFrostwire.sh has a section that points to my version of Java (which is 1.6)
Try cutting out that section and replace it with a version that points to your classpath,
like mine here. Note that my file looks different than the default that ships, but only for this section. Search for all of the versions of Java on your system. I'll bet you have more than one.
Try another version and see if it works, and then plug that working classpath at the top of this section of your runFrostwire.sh file.

Code: Select all
look_for_java()
{
JAVADIR=/usr/SDK
if look_for_javaImpl ; then
    return 0
fi
JAVADIR=/usr/lib/jvm
if look_for_javaImpl ; then
    return 0
fi
JAVADIR=/usr/lib 
if look_for_javaImpl ; then
    return 0
fi
JAVADIR=/usr/java
if look_for_javaImpl ; then
       return 0
fi
JAVADIR=/opt
if look_for_javaImpl ; then
       return 0
fi
return 1



Good luck Mrfixit.
Reindeer
Member
 
Posts: 1
Joined: Tue Jan 13, 2009 2:25 am

Re: Fedora 7 and Java 1.6 -- does nothing

Postby The_Fox » Tue Jan 13, 2009 1:18 pm

Hi guys,

Since I'm a linux user myself Ubuntu 8.04.1 :D I thought I'd see if I can help...

I've never had a problem but let's try to sort this mess out...

From my little research.. it seems a simple enough problem, all you need is a work around :S

If you recieve an error such as this :
#
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 JAVA URL HERE
#
OOPS, unable to locate java exec in /usr/lib/ hierarchy
#
You need to upgrade to JRE 1.4.x or newer from JAVA URL HERE
#
ls: /usr/java/j*: No such file or directory
#
OOPS, unable to locate java exec in /usr/java/ hierarchy
#
You need to upgrade to JRE 1.4.x or newer from JAVA URL HERE
#
ls: /opt/j*: No such file or directory
#
OOPS, unable to locate java exec in /opt/ hierarchy
#
You need to upgrade to JRE 1.4.x or newer from JAVA URL HERE

or
******************************************************************
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.6.0"
OpenJDK Runtime Environment (build 1.6.0-b10)
OpenJDK Client VM (build 1.6.0-b10, mixed mode, sharing)

Simply type in sudo update-alternatives --config java then select the alternative that includes "sun" in the name.

That should sort it out... if you've just updated Harvey, Java gets all muddled up :( basically not letting frostwire to allow to start..


sudo update-java-alternatives -s java-6-sun

That should sort that out :)

I did have to do some research as my linux box is sitting there idle recently.. I probably should play about with it more :S I should help more out on linux.. so.. sorry for disregarding my fellow linuxees' lol

Hope this helps, if not.. please feel free to post back

NOTE: Please replace "JAVA URL HERE" with www.java.com :)
User avatar
The_Fox
Moderator
 
Posts: 905
Joined: Mon Aug 11, 2008 5:21 pm
Location: The_Fox@Root

Re: Fedora 7 and Java 1.6 -- does nothing

Postby Only A Hobo » Tue Jan 13, 2009 3:50 pm

Mr Fixit last visited the forums in May 2008 ... lets hope this helps him.
User avatar
Only A Hobo
Moderator
 
Posts: 4864
Joined: Wed Mar 29, 2006 9:04 am
Location: Just Visiting

Re: Fedora 7 and Java 1.6 -- does nothing

Postby gerowen » Mon Jan 19, 2009 2:43 pm

I'm using Fedora 10, but for some reason the RPM is broken and spits out those same Java error messages. However, I just downloaded the tarball and ran the "runFrostwire.sh" file and it works like a charm, so I just stuck a shortcut to that in my menu.
gerowen
Member
 
Posts: 2
Joined: Sun Dec 16, 2007 9:55 am

Re: Fedora 7 and Java 1.6 -- does nothing

Postby Only A Hobo » Tue Jan 20, 2009 8:44 pm

Thanks for posting that. I hope it helps others :)
User avatar
Only A Hobo
Moderator
 
Posts: 4864
Joined: Wed Mar 29, 2006 9:04 am
Location: Just Visiting

bad connection

Postby kiss » Mon Mar 22, 2010 12:20 pm

please someone help me.. my frostwire isnt getting a good connecton.. it seems like ive tryed everything to get it to connect all the way.
kiss
Member
 
Posts: 1
Joined: Mon Mar 22, 2010 12:09 pm

Re: Fedora 7 and Java 1.6 -- does nothing

Postby Only A Hobo » Wed Mar 24, 2010 5:13 pm

Take a look HERE < click where there are many suggestions.

Otherwise take a look HERE and give us the details we ask for.

Something tells me you are not a Fedora user, but I could be wrong.
User avatar
Only A Hobo
Moderator
 
Posts: 4864
Joined: Wed Mar 29, 2006 9:04 am
Location: Just Visiting

Next

Return to Software Support

Who is online

Users browsing this forum: No registered users and 1 guest