LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2005, 04:09 PM   #1
morte313
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
LimeWire, JRE, $PATH


I have thoroughly read and re-read the existing threads on this installation issue. I am at my wits' end. Here was the original error:

morte@linux:~> rpm -i LimeWireLinux.rpm
error: Failed dependencies:
j2re >= 1.4.1 is needed by LimeWire-free-4.9.27-0

yet...

morte@linux:~> java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

At this point I read the existing threads. My Java install is in /usr/java/j2re1.4.2_09 but $PATH says otherwise:

morte@linux:~> $PATH
bash: /home/morte/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin: No such file or directory

So I changed the path, using

export PATH=$PATH:/usr/java/j2re1.4.2_09/bin

I also added it to my .bashrc and now I get:

morte@linux:~> $PATH
bash: /home/morte/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/usr/java/j2re1.4.2_09/bin: No such file or directory

The problem seems to me that it is looking in both places for Java. I don't know why it consistently says "No such file or directory" because it clearly exists. Then, while messing around I removed the variable from export PATH=$PATH:/usr/java/j2re1.4.2_09/bin and when I entered

morte@linux:~> which java

it listed the correct path! But my joy was quickly replaced with horror when

morte@linux:~> rpm -i LimeWireLinux.rpm
bash: rpm: command not found

The problem wasn't permanent, because I edited my .bashrc but at that point I was ready to give up. If anyone can figure out where I went horribly wrong, I would be eternally grateful.
 
Old 08-23-2005, 04:15 PM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
You may need a JAVA_HOME environment variable i.e.

export JAVA_HOME=/usr/java/j2re1.4.2_09
export PATH=$PATH:$JAVA_HOME/bin


to check an enviroment variable run...

echo $PATH
echo $JAVA_HOME


HTH

Mad
 
Old 08-23-2005, 04:22 PM   #3
morte313
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
That fixed the "No such file..." error and echo $JAVA_HOME listed the correct directory, but LimeWire is still confused. Is there any way to simply remove the incorrect (or unwanted) path?
 
Old 08-24-2005, 03:46 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Code:
#rpm -Uvh --force --nodeps LimeWireLinux.rpm
 
Old 08-25-2005, 04:00 PM   #5
morte313
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
The rpm options permitted the installation but when initializing the app I get:

Starting LimeWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.4.2_08]
Configuring environment...
Loading LimeWire:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:748)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
at com.limegroup.gnutella.gui.Main.showInitialSplash(Main.java:67)
at com.limegroup.gnutella.gui.Main.main(Main.java:39)

******************************************************************
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 version of Java in your PATH is:
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

Oy. This is getting to be more trouble than its worth...
 
Old 08-25-2005, 04:03 PM   #6
morte313
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Nevermind. I was trying to launch the app as root. Things are fine now.

Thanks for all the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install/Uninstall LimeWire...PATH...JRE joe6pack Linux - Software 7 03-07-2005 06:30 PM
linking JRE 5.0 to firefox and limewire rpmheadache Linux - Software 16 02-21-2005 12:05 PM
jre path in suse9.0 for oracle8 install gnicezw Linux - Newbie 1 04-20-2004 05:08 PM
Limewire will not install, java not in PATH endezeichen Linux - Software 2 12-20-2003 01:53 PM
jre not in path... Risc91 Linux - General 7 01-16-2002 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration