LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-23-2004, 02:05 AM   #1
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Rep: Reputation: 15
How to set JAVA_HOME in REDHAT 9.0 Linux?


I was trying to set JAVA_HOME in profile file, but unable to decide where to put the java_home path. Can anyone guide me?

J2sdk and JRE are in /USR/JAVA
 
Old 05-23-2004, 06:32 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Try editing your ~/.bashrc and add it there:
Code:
export JAVA_HOME=/usr/java
...then make sure ~/.bashrc is called from ~/.bash_profile:
Code:
if [ -e ~/.bashrc ]
then
    source ~/.bashrc
fi
You may also want to keep in mind that filenames and directories in Linux are case sensitive, so setting $JAVA_HOME to /USR/JAVA would fail.

Håkan
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set workgroup in linux redhat 9 vanhelsing Linux - Networking 4 09-03-2004 05:08 PM
How to set JAVA_HOME in REDHAT 9.0 Linux? tejpatil Linux - Newbie 5 05-23-2004 01:17 PM
JAVA_HOME path not set for all users tantric Linux - Software 5 03-29-2004 01:25 PM
RedHat 8 Linux Lab Network Set Up Help Mike65 Programming 6 02-23-2003 11:17 AM
how to set iptables in redhat linux 7.1 cmardhekar Linux - General 3 08-24-2001 11:25 PM


All times are GMT -5. The time now is 12:42 PM.

Main Menu
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