The javax.servlet package classes are usually in servlet.jar Since this is a "standard extension" package you should be able to put servlet.jar in the JAVA_HOME\jre\lib\ext directory and not have to set it in CLASSPATH at all. Bill
Thanks for the reply. how is that?the problem is when i compile my servlet program i got that message,I do that before even starting up my tomcat server.where exactly do i have to set to be able to compile my servlet. thanks alot.
You have the current directory ".", in the classpath
As William has suggested, move/copy the servlet.jar file manually to the %JAVA_HOME%\jre\lib\ext folder.If you do this you donot need to set the classpath for javax.servlet.* packages, as the Java Run-time environment would find it for you.