LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 11-01-2003, 04:58 PM   #1
Tranquil
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, 05:03 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
http://www.linuxquestions.org/questi...highlight=java

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

Rep: Reputation: 5
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
 
Old 11-02-2003, 03:52 AM   #4
Guru3
Member
 
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.
 
  


Reply


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


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

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