javac
If you want to compile servlets you need to add either j2ee.jar to your classpath, or if you are using a webserver like tomcat than you need to add the servlet-api.jar to your classpath. You can find this jar bundled with your webserver, in the case of tomcat it is in the common/lib subdirectory.