Originally posted by beni:
I have just installed Tomcat, and I'm trying to compile a servlet.
I get the following error:
package javax.servlet does not exist
Does anyone know where I can find it, and how to install it?
Help! Please!
You need to put servlet.jar somewhere where your java compiler can see it. You can find servlet.jar in tomcat/lib/.
Either put it in your Java extensions folder (Not recommended as all Java app's will be able to see it) or put it in the classpath.
Better still use a build tool such as ant to compile with - then you can set up a simple ant script to load the libraries you need, compile your servlet and then deploy it into tomcat.
You can get ant from the same place as Tomcat, apache jakarta.
Good look with the Servlet
James Donkin
bygimis@mac.com