I had the same sort of problem yesterday in 4.1.17 that I have not yet solved. When startup.sh is executed, it echos the value of JAVA_HOME and it is correct.
When I run ant -diagnostics list (or install) I get: java.home=/var/java/jre which is NOT what the JAVA_HOME points to. JAVA_HOME is set in /etc/profile. ant compile works fine. JAVA_HOME is set correctly, something else seems to be happening. YES, export is performed. I have seen the problem with both java1.3 and java 1.4 At 04:50 PM 12/20/2002 +0100, you wrote: >Ben Ricker wrote: >>I have this weird problem with setting the JAVA_HOME env variable in >>Tomcat 4.1.18 (I also had it in 4.1.17). >> >>This setup worked in 4.1.12 and 4.0.6. Now, when I start Tomcat using >>the startup.sh, I get this: >>[root@dev bin]# ./startup.sh >>The JAVA_HOME environment variable is not defined correctly >>This environment variable is needed to run this program >>What gives? > >You need to specify a path to a JDK now, instead of a JRE. > >Remy > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
