Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   java 1.4.2 vs 1.5 (https://www.gnutellaforums.com/general-linux-support/44895-java-1-4-2-vs-1-5-a.html)

Matamoros September 8th, 2005 05:44 PM

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?

limewire September 9th, 2005 02:54 PM

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.

Matamoros September 9th, 2005 08:07 PM

[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...

limewire September 10th, 2005 06:47 PM

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.

Matamoros September 10th, 2005 10:23 PM

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?

limewire September 11th, 2005 07:16 AM

Either ~/.bashrc or an init script in /etc/init.d is all I can think of...

WimeLire December 11th, 2005 05:05 PM

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.


All times are GMT -7. The time now is 02:25 AM.

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.