出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path” 这种错误

来源:互联网 发布:真趣网络 编辑:程序博客网 时间:2024/06/11 13:02
1.在Eclipse中,Window-->preference --> servers --> runtime --> environments --> 全部删除

2.Add-->Browse-->选择本地tomcat文件夹所在位置-->确定 --> finish-->OK

3.右键点击项目->build path->configure build path->add library->server runtime->apache tomcat

0 0