LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   FC3 installed Limewire crashes with wrong Java version (https://www.linuxquestions.org/questions/fedora-35/fc3-installed-limewire-crashes-with-wrong-java-version-296042/)

arst05 02-28-2005 06:53 PM

FC3 installed Limewire crashes with wrong Java version
 
I downloaded and installed Limewire in Fedora Core 3, I have the latest version of Sun's Java installed. After installing the RPM for Limewire and when I try to execute the program the following error is received;


UIDefaults.getUIError: failed to locate UI class:TextAreaUI
java.lang.reflect.InvocationTargetException
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/us r/lib/libgcj.so.5.0.0)
at com.limegroup.gnutella.gui.Main.main(java.lang.String[]) (Unknown Source)
Caused by: java.lang.NullPointerException
at javax.swing.text.JTextComponent.setCaretPosition(int) (/usr/lib/libgcj.so. 5.0.0)
at javax.swing.text.JTextComponent.select(int, int) (/usr/lib/libgcj.so.5.0.0 )
at javax.swing.text.JTextComponent.selectAll() (/usr/lib/libgcj.so.5.0.0)
at com.limegroup.gnutella.gui.GUILoader.displayError(java.lang.String) (Unkno wn Source)
at com.limegroup.gnutella.gui.GUILoader.showCorruptionError(java.lang.Throwab le) (Unknown Source)
at com.limegroup.gnutella.gui.GUILoader.load(java.lang.String[], java.awt.Fra me) (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
...3 more

******************************************************************
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+)

rickh 02-28-2005 08:11 PM

Does Java work with any other programs?

arst05 02-28-2005 08:26 PM

Re: Java limewire
 
Yes, it works perfectly with Firefox and all other programs that use Java.

arst05 02-28-2005 11:52 PM

Quote:

Originally posted by rickh
Does Java work with any other programs?
Do you have any tips on how to make it point to the correct place or how to make it work?

rickh 03-01-2005 11:38 AM

Nope, Sorry. I use Xnap, a java based open nap client, and don't have a problem, but don't have a clue what knd of specific issues Limewire may have.

arst05 03-01-2005 12:06 PM

Re: program
 
Which program do you use, do you have a link for it and is it free?

vanstra 03-10-2005 07:52 AM

The symbolic link /usr/bin/java is poiting to the wrong java executable.
Locate the right java executable (for example /usr/java/jre1.5.0_01/bin/java).
Delete the symbolic link and make a new symbolic link to the right java executable.
In my case it was:

ln -s /usr/java/jre1.5.0_01/bin/java /usr/bin/java

After that everything worked.

Vanstra

djones427 03-20-2005 01:11 AM

fix for limewire (java)
 
thanks vanstra for the advice. it worked for me as well. my sym links pointed to /etc/alternatives. not sure why they were there.

-dax

arst05 03-20-2005 01:08 PM

Symlink Pointer
 
What is the command to delete the symlink, and how do I find where it is pointed
to?

djones427 03-21-2005 01:02 AM

re: symbolic link pointer
 
I found the symbolic link in /usr/bin. It looked like this java -> /etc/alternatives/java. There were also symbolic links for jar and javac. I did a change directory to /usr/bin (cd /usr/bin) and then used the remove command to remove the link just as if it were a file (rm java). I also used "rm jar" and "rm javac" to remove those links as well. Upon inspection I found that, in my case, the java, jar, and javac links in /etc/alternatives were pointed to shell scripts (ex. /usr/share/java/libgcj-java-placeholder.sh). Something to do with "jpackage.org JVM packages".

At any rate, once I had removed the symbolic links in /usr/bin, I followed vanstra's advice to create new links pointing to my currently installed version of Java. In my case the command was this: ln -s /usr/java/jre1.5.0_02/bin/java /usr/bin/java

That seemed to do the trick. Now when I load my java apps (such as limewire) it is able to correctly find and load Java via the new symbolic link.

Hope this helps.

-Dax

vanstra 03-21-2005 12:32 PM

Nice to hear that it worked.

Vanstra


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