Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-01-2003, 03:58 PM   #1
LQ Newbie
Registered: Nov 2003
Location: Piteň, Sweden
Posts: 1

Rep: Reputation: 0
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?
Old 11-01-2003, 04:03 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46

second post. make sure that the path used is the path of your java_install_path.
Old 11-01-2003, 06:45 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 26

Rep: Reputation: 6
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:

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
Old 11-02-2003, 02:52 AM   #4
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
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.


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
How to set PATH variable for command tracert? princegbenga Linux - Software 2 06-14-2007 07:48 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
Universal Environment Path SET apocolpse Linux - Newbie 1 10-16-2004 02:56 AM
Where to set system PATH variable Cybers19 Linux - Newbie 4 05-05-2004 01:46 PM
How to set path environment? Junior Linux - Newbie 3 02-23-2004 07:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration