tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Help : can't get java compiling through
Date Wed, 01 Nov 2000 01:11:02 GMT
Steven Liu wrote:

> Hi, any one can tell me why I cant get the this example compiled out.
> code is at tomcat/webapps/examples/WEB-INF/classes/
> when I do javac , get following output:

When you are compiling servlets yourself, you must ensure that the servlet.jar
file that came with Tomcat is visible on your classpath.  Assuming that
TOMCAT_HOME points at your Tomcat installation directory, you can do this like
so (all on one line):

javac -classpath $TOMCAT_HOME/lib/servlet.jar:$CLASSPATH


Craig McClanahan

View raw message