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?
|
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.
|
where do i find out what bash uses to set environment variables?
|
I think what you want to do is:
export PATH=$PATH:/usr/java/jre-your-version-here Then see if Limewire installs. |
You can also add a line by Crashed_Again to your
.bashrc file. This will set PATH variable automatically every time you login. |
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? |
Is java installed? Did you set the correct path to java?
|
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?
|
Quote:
|
I used this command and the direcory is correct -
export path=$PATH:/usr/java/jre-1.4.1_02 doesnt work |
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 |
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 |
Yep, I tried all that too..doesnt work for some reason :|
|
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 . |
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 |
All times are GMT -5. The time now is 02:58 PM. |