tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: SOLUTION Re: can't find javac tomcat 5.0.30 jdk1.5.0
Date Wed, 01 Dec 2004 13:54:04 GMT

Hi,
Hmm.... Thanks for posting your findings and solution, and I'm glad it
works for you now.

Yoav Shapira http://www.yoavshapira.com
 

>-----Original Message-----
>From: D. Stimits [mailto:stimits@comcast.net]
>Sent: Tuesday, November 30, 2004 4:16 PM
>To: Tomcat Users List
>Subject: SOLUTION Re: can't find javac tomcat 5.0.30 jdk1.5.0
>
>D. Stimits wrote:
>> Shapira, Yoav wrote:
>>
>>> Hi,
>>> Try to set JAVA_HOME and CATALINA_HOME explicitly in your
>>> $CATALINA_HOME/bin/catalina.sh file, to see if that makes a
difference.
>>
>>
>> This was one of the first things I tried. I explicitly set JAVA_HOME
and
>> CATALINA_HOME as a test. It is looking for javac in
>> /opt/jdk1.5.0/bin/javac, and failing to find it, so it is looking in
the
>> right place (maybe with eyes closed).
>
>I found a solution...though I still am not sure of why it failed
before.
>Instead of hard coding CATALINA_HOME and JAVA_HOME into the various
>shell scripts, I added bin/setenv.sh and used export JAVA_HOME and
>export CATALINA_HOME there. Combined with "classic" compiler setting (I
>was trying this before it didn't help without the setenv.sh) it now
>works. In reality it currently has the settings in all of the .sh
files,
>I have not tested after removing it from those, but the magic seems to
>be setenv.sh, it seems it propagates the environment in some way that
>the same export statements fail to do from the other files:
>
>#!/bin/sh
>
>export JAVA_HOME="/opt/jdk1.5.0"
>export CATALINA_HOME="/usr/local/jakarta-tomcat-5.0.30"
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message