解决The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path配置路径还是有错误标志的解决

来源:互联网 发布:mac中的照片在哪里 编辑:程序博客网 时间:2024/06/07 05:21

网上关于The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的错误问题的解决方法一找一大堆,我这里也就转载一下别人的解决方法,但是重点在于我试了这个方法后还是有错误标志,表示当时都要疯了,下面说一下解决方法:

1、右击web工程->属性或Build Path->Java Build Path->Libraries-> Add Libray...->Server Runtime ->Tomcat Server
2、切换到Java Build Path界面中的Orader and Export,选择Tomcat。

但是还是有错误怎么办?

我当时也是很郁闷,实在找不到合适的方法的时候,我想起在开发android的时候,遇到问题会clean一下,于是就试了一下,竟然就好了!

clean一下就ok~

在菜单栏里面的Project->clean,点击后就成功了!

0 0
原创粉丝点击