Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 8th, 2005
liefhebber
 
Join Date: March 14th, 2004
Location: Amsterdam
Posts: 74
Matamoros is flying high
Default java 1.4.2 vs 1.5

Hi all, I am runninng LimeWire under Fedora Core 4. Java 1.5 is installed:

Code:
$ rpm -q jre
jre-1.5.0_04-fcs
but java 1.4.2 is also installed (probably by FC2) and seems to take precedence in the path, even though I have tried to configure this otherwise with sbin/alternatives. As such, when I run LimeWire from the Gnome menu, it launches with 1.4.2 and crashes frequently, whereas if I run

Code:
$ /usr/java/jre1.5.0_04/bin/java -jar LimeWire.jar &
it runs with 1.5 without problems. Anyone know how to fix things so it always runs with 1.5?
Reply With Quote
  #2 (permalink)  
Old September 9th, 2005
>_
 
Join Date: August 17th, 2003
Posts: 129
limewire is flying high
Default

Uninstalling the old java would probably be the easiest thing...

What does 'which java' say? What does 'echo $PATH' say? There should be an entry in there for 1.5.
Reply With Quote
  #3 (permalink)  
Old September 9th, 2005
liefhebber
 
Join Date: March 14th, 2004
Location: Amsterdam
Posts: 74
Matamoros is flying high
Default

[QUOTE]Originally posted by limewire
Uninstalling the old java would probably be the easiest thing...

Quote:
What does 'which java' say?
$ which java
/usr/bin/java

Quote:
What does 'echo $PATH' say? There should be an entry in there for 1.5.
$echo $PATH
/opt/jre1.5.0_04/bin:/usr/kerberos/bin:/opt/jre1.5.0_04/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/colin/bin:/sbin:/usr/sbin:/home/colin/bin

Grrrr, I don't know where these redundancies are coming from...
Reply With Quote
  #4 (permalink)  
Old September 10th, 2005
>_
 
Join Date: August 17th, 2003
Posts: 129
limewire is flying high
Default

Why is /opt/jre1.5.0_04/bin in your path if /usr/java/jre1.5.0_04/bin/java is what you need (according to your first post)? Change that and you should be set /usr/bin/java is probably a link to 1.4. The redundancy is probably because you have similar entries in /etc/profile and ~/.bash_profile or similar.
Reply With Quote
  #5 (permalink)  
Old September 10th, 2005
liefhebber
 
Join Date: March 14th, 2004
Location: Amsterdam
Posts: 74
Matamoros is flying high
Default

I am having trouble determing who or what is adding this to my path: /opt/jre1.5.0_04/bin

I don't see it in either ~/.bash_profile or /etc/profile

Is there anything else that could set it?
Reply With Quote
  #6 (permalink)  
Old September 11th, 2005
>_
 
Join Date: August 17th, 2003
Posts: 129
limewire is flying high
Default

Either ~/.bashrc or an init script in /etc/init.d is all I can think of...
Reply With Quote
  #7 (permalink)  
Old December 11th, 2005
WimeLire
Guest
 
Posts: n/a
Default

Quote:
Why is /opt/jre1.5.0_04/bin in your path
To be failsafe you'll want to edit the gui/run script (after each upgrade) as follows:

#!/bin/sh -
set -a
cd /.../limewire/gui
JAVA_HOME=/usr/java
PATH=${JAVA_HOME}/bin:${PATH}

CLASSPATH=...
PATH=${PATH}:../lib/native
java ...

Replacing the (...) with your installation's path.
Reply With Quote
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need help; LW says please install the new version of java after installing Java Logan_2468 Windows 7 October 5th, 2009 11:07 PM
Limewire Keeps Closing Down: System prefered Java 1.4.2 over Java 1.5 CrAcKeDuP Connection Problems 13 February 22nd, 2005 04:49 AM
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st jllabres General Linux Support 6 October 17th, 2002 05:26 PM
Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/st jllabres General Linux Support 2 October 13th, 2002 02:06 AM
Java Plug In program (java Machine) Unregistered General Windows Support 0 January 27th, 2002 10:03 AM


All times are GMT -7. The time now is 08:15 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.