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


  Search this Thread
Old 05-23-2004, 02:05 AM   #1
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
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Try editing your ~/.bashrc and add it there:
export JAVA_HOME=/usr/java
...then make sure ~/.bashrc is called from ~/.bash_profile:
if [ -e ~/.bashrc ]
    source ~/.bashrc
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.



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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration