What is the difference between the two (servlet.jar & servlet-api.jar). I have servlet.jar in my CLASSPATH and have so far no problem in compiling and running HF Beer example.
posted 12 years ago
Well, as I'm sure you know, the Servlet specification is just a loose collection of interfaces (like HttpServlet) and classes. So, ultimately, you need to have an implementation of those classes to actually run the darn thing (usually provided by your web container at runtime). The point is that sometimes, you won't have an implementation of the Servlet specification until runtime. Ergo the api jar.