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

问题描述:eclipse中建立一个动态网站项目,添加测试页index.jsp时出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

解决方法:Adding the tomcat server in the server runtime will do the job :Project Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish.

posted on 2016-08-30 10:15  deodara  阅读(212)  评论(0编辑  收藏  举报

导航