You may need to download additional files before you can compile servlets.

Go to the download page for Sun's Java Servlets.  In the "Java Servlets" section under "Specifications," you see a section called "2.3 - Final Release."  You want to download both the class files and Javadocs.  Both are in zip format.

servlet-2_3-fcs-classfiles.zip
[
] This file does not need to be unzipped. Place it in the "lib" folder, which you will find inside the root installation folder for your JDK. You will also need to specify this zip file as part of the classpath when you compile. From the DOS window, mine would look like this: [
][
]
javac -classpath ".;D:\jdk1.3\lib;D:\jdk1.3\lib\servlet-2_3-fcs-classfiles.zip" CIS237Servlet.java
[
][
] I use the -classpath switch, and enclose the paths between double-quote marks. I have three paths specified, separated by semi-colons: The "." indicates the current directory. The "D:\jdk1.3\lib" indicates the path to my "lib" directory. The "D:\jdk1.3\lib\servlet-2_3-fcs-classfiles.zip" indicates the path to my servlet zip file. NOTES: I installed my JDK on my D drive. I have the first version of the 1.3 JKD, so the directory is named "jdk1.3". Yours may be different. Make sure to set your path to the "bin" directory: set path="D:\jdk1.3\bin" Make sure your current directory is the one with the Java source files. [
] servlet-2_3-fcs-docs.zip [
] Unzip this file in a convenient folder. It contains the documentation for the Servlet classes. [
]