LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-06-2003, 06:04 PM   #1
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
setting environment PATH


I have installed RH8 and I was trying to install Limewire and it said it needed Java VM to run. So I downloaded the newest java virtual machine from Sun and installed it. The problem is, Limewire still does not see it. It says there is no java in the path. the path to the actual java is /usr/java/jre... How do I set this PATH?
 
Old 03-06-2003, 06:51 PM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Figure out what directory it's looking for java vm in. You can do this by opening it's configure script in a text editor (assuming it uses configure or some other ascii config file.) Then set the env var it's looking for by using set or export or whatever syntax your shell uses to set env vars.
 
Old 03-06-2003, 09:04 PM   #3
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
where do i find out what bash uses to set environment variables?
 
Old 03-06-2003, 09:23 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I think what you want to do is:

export PATH=$PATH:/usr/java/jre-your-version-here

Then see if Limewire installs.

Last edited by Crashed_Again; 04-13-2003 at 10:20 AM.
 
Old 03-07-2003, 06:52 AM   #5
CondorPasa
LQ Newbie
 
Registered: Mar 2003
Distribution: Red Hat 8.0
Posts: 4

Rep: Reputation: 0
You can also add a line by Crashed_Again to your
.bashrc file. This will set PATH variable automatically every time
you login.
 
Old 04-11-2003, 11:35 PM   #6
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Hi,
I have the same problem and I tired export command u have there. It didnt help at all. Is there any other way of doing this?
 
Old 04-11-2003, 11:36 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Is java installed? Did you set the correct path to java?
 
Old 04-11-2003, 11:38 PM   #8
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Java j2sdk1.4.1_02 is installed and no I havent set its path variables because I dont know how to. Sorry, I am a newbie to linux How do i do this?
 
Old 04-11-2003, 11:39 PM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
Originally posted by Crashed_Again
I think what you want to do is:

export PATH=$PATH:/usr/java/jre-your-version-here

Then see if Limewire installs.
Like I said above.

Last edited by Crashed_Again; 04-13-2003 at 10:21 AM.
 
Old 04-11-2003, 11:43 PM   #10
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
I used this command and the direcory is correct -
export path=$PATH:/usr/java/jre-1.4.1_02
doesnt work
 
Old 04-12-2003, 09:44 AM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I think you have to add the /bin on the end of that because the java command is in the /bin directory:

export PATH=$PATH:/usr/java/jre-1.4.1_02/bin

Last edited by Crashed_Again; 04-13-2003 at 10:21 AM.
 
Old 04-12-2003, 12:55 PM   #12
captain_bogus
LQ Newbie
 
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21

Rep: Reputation: 15
I'm having the same problem

I'm having the same problem. I typed the command into the "Konsole" and got the same result..."No Virtual Machine could be found from your PATH environment variable"

I typed it just like this, and yes that is j2re. I've tried it with the /bin, without the bin, with j2re...and with jre...

export path=$PATH:/usr/java/j2re1.4.1_02/bin

Thanks for any help/suggestions
 
Old 04-12-2003, 10:00 PM   #13
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Yep, I tried all that too..doesnt work for some reason :|
 
Old 04-13-2003, 12:02 AM   #14
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Ummm...okay its possible that you have java installed some where else as well. Do:

locate java | more

and make sure that you do not have the java executable installed anywhere else besides /usr/java/j2re1.4.1_02/bin . If you do then it is possible that the limewire installer is using the java executable from somewhere else besides /usr/java/j2re1.4.1_02/bin .
 
Old 04-13-2003, 12:44 AM   #15
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
I checked it and it isnt installed anywhere else but in /usr/java/j2re1.4.1_02/bin . I am sure the problem is not with limewire as I was trying to complie a java program using javac and its path variable wasnt updated either. I had to type complete path in order to make it work. I dont know what the problem is ..anyway,
Thanks for your help crashed_again and others
 
  


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
PATH environment variable moonz Red Hat 3 09-08-2005 04:10 PM
Universal Environment Path SET apocolpse Linux - Newbie 1 10-16-2004 02:56 AM
How to set path environment? Junior Linux - Newbie 3 02-23-2004 07:35 AM
Changing environment path. JMC Linux - General 1 05-04-2002 03:50 AM
rh7.1 environment variables (eg path) dave_lane Linux - Newbie 1 09-20-2001 08:05 AM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration