At a command prompt:

JAVA_HOME=/some/path/to/JDK; export JAVA_HOME

Test it at a command prompt:

  echo $JAVA_HOME

That will be valid for that login session only.  If you need it for every
login session, you'll want to put it in your login scripts.  If you want it
available for everyone, all the time, the best place to put that might be
/etc/profile. If you put it in scripts, put "export JAVA_HOME" on a separate
line.

John

-----Original Message-----
From: Jianping Zhu [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 29, 2002 11:30 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: RE: apache and tomcat 




How can i set up the environment varible JAVA_HOME for apache tomcat in
redhat linux 7.1 with bash shell?

thanks 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to