把servlet.jar包路径加到classpath中试试http://www.chinajavaworld.com/doc/install/1.html