classNotFoundException 解决eclipse不编译class文件之方法

来源:互联网 发布:nginx tomcat动静分离 编辑:程序博客网 时间:2024/06/06 05:01
1,查看project --> Build Automatically有没有选中?如果没有,勾上以后,clean一下,重启eclipse。 

2,查看你的lib里面有没有不用的(多余)jar包,看你的.classpath文件中有没有错误的路径.(added by me:如果有错误的路径打红叉的就看是不是缺失的,找jar包补上,可能到这一步就可以了,没做下面这一步) 

3,这是最重要的一点,有problems视图中查看有没有关于本项目的错误信息,一般都会有这样的话: 
      The project cannot be built until build path errors are resolved 

然后下面提示unbound classpath, 一般在.classpath中删除这些path就可以了
0 0
原创粉丝点击