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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-06-2003, 06:04 PM
|
#1
|
|
Member
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157
Rep:
|
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?
|
|
|
|
03-06-2003, 06:51 PM
|
#2
|
|
Member
Registered: Mar 2003
Distribution: Slackware
Posts: 234
Rep:
|
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.
|
|
|
|
03-06-2003, 09:04 PM
|
#3
|
|
Member
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157
Original Poster
Rep:
|
where do i find out what bash uses to set environment variables?
|
|
|
|
03-06-2003, 09:23 PM
|
#4
|
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
|
03-07-2003, 06:52 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2003
Distribution: Red Hat 8.0
Posts: 4
Rep:
|
You can also add a line by Crashed_Again to your
.bashrc file. This will set PATH variable automatically every time
you login.
|
|
|
|
04-11-2003, 11:35 PM
|
#6
|
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
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?
|
|
|
|
04-11-2003, 11:36 PM
|
#7
|
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Is java installed? Did you set the correct path to java?
|
|
|
|
04-11-2003, 11:38 PM
|
#8
|
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
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?
|
|
|
|
04-11-2003, 11:39 PM
|
#9
|
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
|
04-11-2003, 11:43 PM
|
#10
|
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
I used this command and the direcory is correct -
export path=$PATH:/usr/java/jre-1.4.1_02
doesnt work
|
|
|
|
04-12-2003, 09:44 AM
|
#11
|
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
|
04-12-2003, 12:55 PM
|
#12
|
|
LQ Newbie
Registered: Apr 2003
Location: Houston, Texas
Distribution: Slack 9.1 - 2.6.6
Posts: 21
Rep:
|
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
|
|
|
|
04-12-2003, 10:00 PM
|
#13
|
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
Yep, I tried all that too..doesnt work for some reason :|
|
|
|
|
04-13-2003, 12:02 AM
|
#14
|
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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 .
|
|
|
|
04-13-2003, 12:44 AM
|
#15
|
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:01 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|