> From: Varuna Seneviratna <varunasenevira...@gmail.com>

> To: Tomcat Users List <users@tomcat.apache.org>; david.sm...@cornell.edu
> Cc: 
> Sent: Tuesday, May 3, 2011 10:48 AM
> Subject: Re: What is JAVA_HOME?
> 
> On 3 May 2011 23:16, David Smith <david.sm...@cornell.edu> wrote:
>>  Depends on your OS and how you start tomcat (startup script or as a
>>  service).
>> 
>>  --David
>> 
>>  On 5/3/2011 1:43 PM, Varuna Seneviratna wrote:
>>>  On 3 May 2011 22:21, Caldarale, Charles R 
> <chuck.caldar...@unisys.com> wrote:
>>>>>  From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com]
>>>>>  Subject: What is JAVA_HOME?
>>>>>  What is the use of the Java Home directory to Tomcat.What are 
> the
>>>>>  files of the Java installation that Tomcat uses?I am asking 
> this to
>>>>>  determine the set of files and their Home directory which 
> should be
>>>>>  set as JAVA_HOME
>>>>  Read the doc.  To quote from RUNNING.txt:
>>>> 
>>>>  (1) Download and Install the Java SE Runtime Environment (JRE)
>>>> 
>>>>  (1.1) Download the Java SE Runtime Environment (JRE),
>>>>       release version 6.0 or later, from
>>>>      
>  http://www.oracle.com/technetwork/java/javase/downloads/index.html
>>>> 
>>>>  (1.2) Install the JRE according to the instructions included with 
> the
>>>>       release.
>>>> 
>>>>  (1.3) Set an environment variable named JRE_HOME to the pathname of
>>>>       the directory into which you installed the JRE, e.g. 
> c:\jre6.0
>>>>       or /usr/local/java/jre6.0.
>>>> 
>>>>  NOTE: You may also use the full JDK rather than just the JRE. In 
> this
>>>>       case set your JAVA_HOME environment variable to the pathname 
> of
>>>>       the directory into which you installed the JDK, e.g. 
> c:\jdk6.0
>>>>       or /usr/local/java/jdk6.0.
>>>> 
>>>>   - Chuck
>>>> 
>>>> 
>>>>  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If 
> you 
> received this in error, please contact the sender and delete the e-mail and 
> its 
> attachments from all computers.
>>>> 
>>>> 
>>>  How to set  environment variables permanently.Without having to set
>>>  each time it is needed to be used.
>>> 
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>  For additional commands, e-mail: users-h...@tomcat.apache.org
>>> 
>> 
>> 
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>  For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
> I am using Fedora 14 at the time if that is so what is the way to do it?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

One way to do this globally for Fedora 14 is to create a custom.sh file in 
/etc/profile.d. Place the values in there.

For example:

JAVA_HOME=<where you installed the JDK>
JRE_HOME=<where you installed the JRE>

export JAVA_HOME JRE_HOME

This suggestion is taken from the comments in /etc/profile.

just my two cents . . .

/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to