tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D. Stimits" <>
Subject SOLUTION Re: can't find javac tomcat 5.0.30 jdk1.5.0
Date Tue, 30 Nov 2004 21:15:36 GMT
D. Stimits wrote:
> Shapira, Yoav wrote:
>> Hi,
>> Try to set JAVA_HOME and CATALINA_HOME explicitly in your
>> $CATALINA_HOME/bin/ 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/ 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 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, it seems it propagates the environment in some way that 
the same export statements fail to do from the other files:


export JAVA_HOME="/opt/jdk1.5.0"
export CATALINA_HOME="/usr/local/jakarta-tomcat-5.0.30"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message