编程那点事 编程那点事编程那点事

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

    eclipse在进行web开发的时候,提示 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 

    解决方法 选中报错的项目,右键单击"property"(属性),然后选中"Java Build Path" 在"Libraries"选项卡中单击"Add Library..."按钮 

Add Library 

    单击"server runtime"然后单击"Next"

      选中server runtime   

    选中"tomcat v7.0",然后单击"Finish"

      完成tomcat7.0的添加 

    至此,"javax.servlet.http.HttpServlet" was not found的问题就解决了,其实,这么做只是添加了servlet-api.jar的引用

编程那点事 更专业 更方便

登录

找回密码

注册