From: Matthew B. <mat...@co...> - 2005-05-27 11:33:28
|
gxdev Developer wrote: >>Ok, it looks like your running Tomcat with a JRE >>rather than a JDK. Do >>you have multiple copies of java installed? When >>tomcat starts up >>normally it logs where it thinks JAVA_HOME is: >> >>Using JAVA_HOME: /usr/lib/j2sdk1.4-sun/ >> >>Does your tomcat startup look to be using a JDK? > > > output from my tomcat when it starts: > Using CATALINA_BASE: > /root/makejt/jakarta-tomcat-5.5.9 > Using CATALINA_HOME: > /root/makejt/jakarta-tomcat-5.5.9 > Using CATALINA_TMPDIR: > /root/makejt/jakarta-tomcat-5.5.9/temp > Using JRE_HOME: /usr/java/jdk1.5.0_02 > > As you can see I am using jdk not jre. Well it's pointing to your JDK but only treating it as a JRE. When tomcat starts up it doesn't add the tools.jar to the classpath. The way to fix this is to add tools.jar to your tomcat classpath. If you had template compilation turned on I am still supprise your saw this message. We need to change this error to something MUCH more helpful (Eg: Bodington cannot find the java compiler. Please make sure you are running bodington with a JDK and that tools.jar is on the servlet container classpath). -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |