LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2002, 09:41 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Java Runtime Environment


Wanted to install LimeWire.
It told me that cannot live without jre.
It seemed to be a modest request compared to that of other applications of the same kind in Linux, so said OK.
Got and installed one jre from rpm, just to satisfy its moods.
LimeWire still keeps telling me it wants a jre.
Can you tell me, please, exactly how many jre's one LimeWire needs in Linux?
And that what's wrong with me, again?
 
Old 02-17-2002, 10:20 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I would reather get a precompiled java from
http://www.blackdown.org
and edit your path after decompressing the file. It must work.
 
Old 02-18-2002, 12:51 AM   #3
proopnarine
LQ Newbie
 
Registered: Jan 2002
Location: Berkeley, California
Distribution: Ubuntu, Fedora, Suse
Posts: 10

Rep: Reputation: 0
Which jre rpm did you install? I would recommend simply getting the latest jre directly from Sun at
http://www.sun.com
or using the Blackdown version as recommended in the other reply. But you have to be sure that the jre is then in your PATH statement, or none of your programs will know how to find it!
 
Old 02-18-2002, 02:12 AM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
How can I edit the PATH statement? That would possibly solve my problem!
 
Old 02-18-2002, 09:37 AM   #5
entm
Member
 
Registered: Oct 2001
Location: Atlanta, GA
Distribution: Red Hat 7.0
Posts: 45

Rep: Reputation: 15
Edit your .bash_profile to include the java bin. I just installed the j2sdk1.4.0 this weekend. My PATH in my user account looked something like this:

PATH=/usr/java/j2sdk1.4.0/bin/:$PATH:$HOME:.

Last edited by entm; 02-18-2002 at 09:44 AM.
 
Old 02-18-2002, 03:32 PM   #6
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Thank you for the tip, but it did not work:

I inserted the following line into all .bash_profile files found on my machine (/root/.bash_profile, /etc/skel/.bash_profile and /home/$user/.bash_profile):

PATH=/usr/java/jre1.3.1_02/bin:$PATH:$HOME/bin

I also tried inserting and omitting the "export PATH" statement at the end of the files.

I checked ten times that the java binary is actually in the /usr/java/jre1.3.1_02/bin directory, yet LimeWire keeps telling me that no java VM could be found from my PATH environment variable.
If only I knew how to query that variable... And above all: how could I test the new configuration without restarting the machine...
I am getting tired of such things happening every time I try to install just a damned programs.
 
Old 02-18-2002, 06:25 PM   #7
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
I finally succeeded: never saw a unix shell script before, but somehow I was lucky enough to find out that although /root/.bash_profile has uncommented PATH lines, those lines are not active in my case, but the script calls /root/bashrc where the actual PATH statement is.
LimeWire found jre at last and works well.
Thank you for your help, it gave me a good starting point.
(But still I wasted almost 10 hours to the simplest program installation which could have been done with three clicks and in 10 minutes in windows while the result would have been the same - so I begin to think of myself as a complete fool)

Last edited by J_Szucs; 02-18-2002 at 06:26 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Java runtime environment Ab3n Linux - Newbie 5 08-19-2005 03:50 PM
Installing JAva runtime environment jcai Linux - General 3 09-28-2004 03:48 PM
Which Java Runtime Environment to use? r_jensen11 Linux - Software 4 09-13-2003 06:43 PM
installing java runtime environment Jack Ditchburn Linux - Software 4 04-13-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 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