This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello, Just see have you added servlet.jar file in your classpath or not and maybe thats why when you compile it couldnt find the classes. So just cheack again . Do ask if you find more problem. Thanks, jasmine
A couple of questions to help you. which .jar file contains HttpServlet? where would tomcat keep those .jars? when you compile, how are you letting the compiler know where to look for all the classes you reference? (hint: classpath) HTH - let us know how you get on, ( I'm not giving you a straight answer because I reckon it's better to understand rather than get a quick fix)