Compiling servlets for tomcat
Posted
by
L4N0
on Stack Overflow
See other posts from Stack Overflow
or by L4N0
Published on 2010-12-25T20:10:33Z
Indexed on
2010/12/25
22:54 UTC
Read the original article
Hit count: 243
java
Hello
I am trying to modify one of the default files that comes with tomcat SessionExample.java, and trying to compile it but I get an error.
javac -classpath "E:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\lib\servlet-api.jar" SessionExample.java
Gives me this error
SessionExample.java:26: package util does not exist import util.HTMLFilter; ^ SessionExample.java:90: cannot find symbol symbol : variable HTMLFilter location: class SessionExample out.println(HTMLFilter.filter(name) + " = " ^ SessionExample.java:91: cannot find symbol symbol : variable HTMLFilter location: class SessionExample + HTMLFilter.filter(value) + "
"); ^ 3 errors
Thank you
© Stack Overflow or respective owner