eclipse更改workspace中出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java----问题》》

第一步:那是因为在项目中没有告诉它应该在哪个tomcat中运行,右击项目名称-----》build path--》configure   path---->library------>add   library-------》server  runtime-----》添加一个tomcat即可

具体详情可·参照http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html

第二步:如果在server   runtme中没有可选项就可以在windows中找server---》运行环境,具体内容可看http://blog.csdn.net/xyy511/article/details/46457665

原文地址:https://www.cnblogs.com/wth21-1314/p/7063925.html