Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-01-2013, 11:46 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
setting java environment varibale

i have installed the java1.6 package what red hat linux is providing.But i am not able to set the JAVA_HOME environment variable.Can anyone please guide me how to do it.
Old 01-01-2013, 11:59 PM   #2
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It can be set as:-

For bash shell:
JAVE_HOME=/path/to/java_dir; export JAVA_HOME
Or you can use,
export JAVA_HOME=/path/to/java_dir
And to make it permanant, add the same line at the end of your .bash_profile file.

For csh/tcsh shell:
setenv PATH /path/to/java:$PATH


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
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 04:04 AM
LXer: Setting up the Java Environment on AIX 5.3 LXer Syndicated Linux News 0 05-09-2007 09:01 PM
Setting environment variables in Java linuxprogrammer Linux - General 2 03-03-2005 06:09 PM
$PATH varibale chongluo Linux - Newbie 5 03-25-2004 02:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration