Hi Konstantin, Chuck, I think I tried also with .../WEB-INF/classes and it still complained that it could not find or open the util package. Then I moved the two HTMLFilter.* files out from there a level up, commented out the package declaration in HTMLFilter.java and then javac compiled SessionExample.java and I am happy with it. Now I know how to mess with java files from the command line with tools like nano, pico and javac :-)
And yes, I did not want to compile the whole Tomcat, just modify one of the servlet examples to suit my need. Thanks you both, János On Apr 28, 2011, at 4:17 PM, Konstantin Kolinko wrote: > 2011/4/28 János Löbb <janos.l...@yale.edu>: >> Hi, >> >> Adding some -claspath based upon man javac, I reduced the number of errors >> to two. >> >> bml0065:classes administrator$ sudo javac -classpath >> /usr/local/apache-tomcat-7.0.10/webapps/examples/WEB-INF/classes/util: > > The above should have been .../WEB-INF/classes and not > ../WEB-INF/classes/util > > /usr/local/apache-tomcat-7.0.10/lib/servlet-api.jar > SessionExample.java SessionExample.java:33: package util does not > exist >> import util.HTMLFilter; >> ^ > > > 2 Chuck: OP is building its own app, not Tomcat. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org