Eclipse里项目名有红叉,但是底下的每一个文件都没有红叉

转:http://www.cnblogs.com/gdpuzxs/p/7235272.html

http://blog.csdn.net/hongchangfirst/article/details/7663287 

有这种错误让人很恼火,因为并不知道是哪个文件引起的整个项目错误。所以我们可以打开下边的错误按钮,看看是什么问题。

如果是因为java compiler level does not match the version of the installed java,

那么我们打开项目的properties,有一个选项为project facets,

点击打开,在右边选择Java版本为最新的,然后apply,应该就ok了。

当然也有可能是因为引用的jar包无效而导致的,根据指出的哪个jar删除进行重新引用即可。

原文:http://blog.csdn.net/hongchangfirst/article/details/7663287

原文地址:https://www.cnblogs.com/withoutaword/p/8250328.html