tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: What is JAVA_HOME?
Date Tue, 03 May 2011 18:50:12 GMT
> From: Varuna Seneviratna <varunaseneviratna@gmail.com>

> To: Tomcat Users List <users@tomcat.apache.org>; david.smith@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.smith@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.Caldarale@unisys.com> wrote:
>>>>>  From: Varuna Seneviratna [mailto:varunaseneviratna@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-unsubscribe@tomcat.apache.org
>>>  For additional commands, e-mail: users-help@tomcat.apache.org
>>> 
>> 
>> 
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>  For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message