LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-01-2013, 10:46 PM   #1
shankarpanda003
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
setting java environment varibale


Hello,
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, 10:59 PM   #2
shivaa
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:
Code:
JAVE_HOME=/path/to/java_dir; export JAVA_HOME
Or you can use,
Code:
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:
Code:
setenv PATH /path/to/java:$PATH
 
  


Reply



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 10:04 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
LXer: Setting up the Java Environment on AIX 5.3 LXer Syndicated Linux News 0 05-09-2007 08:01 PM
Setting environment variables in Java linuxprogrammer Linux - General 2 03-03-2005 05:09 PM
$PATH varibale chongluo Linux - Newbie 5 03-25-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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