FC3 installed Limewire crashes with wrong Java version
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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+)
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.