From: Jon M. <jo...@te...> - 2006-06-19 13:28:26
|
Ta, Atif. I dug in the startup scripts in Tomcat and found a way to get them to set the classpath properly. Look for the following section in catalina.sh and add the keyword "javac". if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then BASEDIR="$CATALINA_HOME" . "$CATALINA_HOME"/bin/setclasspath.sh javac else echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh" echo "This file is needed to run this program" exit 1 fi Atif Suleman wrote: > Jon Maber wrote: > > >> Im fiddling with templates in Bodington but have got stuck. >> >> Im using JDK 1.5 to build Bodington and to run Tomcat. Templates compile >> O.K. during the build but don't rebuild within the running Bodington. >> >> Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main >> >> How do I configure Tomcat so that the compiler is found? >> >> Jon >> >> >> >> _______________________________________________ >> Bodington-developers mailing list >> Bod...@li... >> https://lists.sourceforge.net/lists/listinfo/bodington-developers >> >> . >> >> >> >> > You need tools.jar on the classpath. > > CLASSPATH=$JAVA_HOME/lib/tools.jar > > Tomcat 5.5.x dosn't use the jdk it only uses the JRE of the jdk. Even > though u are using a JDK to run tomcat. > > The following document explains this known problem: > bodington/docs/install/quickstart/Readme.txt > > Ta > Atif. > > > > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > > |