LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set PATH How do I set PATH environment variable? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-path-how-do-i-set-path-environment-variable-111204/)

Tranquil 11-01-2003 04:58 PM

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?

megaspaz 11-01-2003 05:03 PM

http://www.linuxquestions.org/questi...highlight=java

second post. make sure that the path used is the path of your java_install_path.

abarclay 11-01-2003 07:45 PM

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

Guru3 11-02-2003 03:52 AM

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.