I think when you use the -classpath option it replaces the classpath you set before invoking the compiler.
Add your servlet.jar file to your OS environment classpath and try again. Or, you can define your whole classpath with the -classpath option.
On Windows:
c:>set classpath=c:\dir\servlet.jar;%classpath%