![]() |
How to set PATH
How do I set PATH environment variable?
I'm trying to install a program, but I get the message
"No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program." I have already installed JVM. So my question is: how do I set the path so I can install the program? |
http://www.linuxquestions.org/questi...highlight=java
second post. make sure that the path used is the path of your java_install_path. |
Although the pathmunge thing works fine, you could also just
do this. I just checked on my linux box and the java executable is installed in: /usr/java/j2sdk1.4.2/bin PATH=$PATH:/usr/java/j2sdk1.4.2/bin export PATH If you want this to be permanent for your userid, then add these lines to your: $HOME/.profile if you are a ksh or sh user $HOME/.bashrc if you are a bash user |
Also, if it needs to be a variable for the system, and you use bash, you can ediet /etc/bashrc to contain the information as well.
|
All times are GMT -5. The time now is 03:58 AM. |