LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2003, 09:07 PM   #1
magnum818
LQ Newbie
 
Registered: Sep 2003
Location: Northridge-California-USA
Distribution: Redhat
Posts: 10

Rep: Reputation: 0
$JAVA_HOME and $PATH


I'm trying to get java installed on my system. I have already chosen to us the SUN version. I need to know whichj file the PATH variable is defined in. I tried adding the following to the rc.local file.

export JAVA_HOME=/usr/java.j2re1.4.2
export PATH=$JAVA_HOME/bin:$PATH

But when I echo those variable, I get the output that I would have gotten if I hadn't added the lines the the rc.local file.

When I type the command in manually at a prompt, everything works fine.

Is rc.local the wrong file? What file is the PATH variable initially defined in?

PS.
I run RH 8.0

Last edited by magnum818; 09-30-2003 at 09:09 PM.
 
Old 09-30-2003, 09:11 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
$PATH's are usually defined in your .bashrc file in the users home directory or even the global file, /etc/profile
 
Old 09-30-2003, 11:05 PM   #3
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
u can also edit the .bash_profile file usually in the user's home directory, i.e., /home/user/

PATH=$PATH:/usr/java/j2sdk1.4.2_01/bin
 
  


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
setting JAVA_HOME gauravbagga Linux - Newbie 2 03-04-2005 10:17 PM
JAVA_HOME Variable yea420 Linux - Software 6 08-29-2004 07:37 PM
JAVA_HOME path not set for all users tantric Linux - Software 5 03-29-2004 02:25 PM
PATH and JAVA_HOME peteABK Linux - Newbie 4 10-19-2003 05:30 PM
JAVA_HOME and tomcat mbbender Linux - Software 5 07-07-2003 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 AM.

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
Open Source Consulting | Domain Registration