【Eclipse】项目红色叹号(转)

项目出现红色叹号 有可能好几种原因:

先把eclipse转换到Markers视图,windows—->show view —->markers ,查看具体错误信息。

1、项目右键 属性 java build path 点选library选项卡 更改jre system library为你本地的jre 或者jdk

2、多个项目项目循环引用,导致的,“A cycle was detected in the build path of project: XXX”

解决方法非常简单:
Eclipse Menu -> Window -> Preferences… -> Java ->Compiler -> Building -> Building path problems -> Circular dependencies -> 将Error改成Warning

3、the project cannot be built until its prerequisite问题.解决方法.

把项目 close一下.再open, project->clean就可以了


转自:https://blog.csdn.net/chenyulancn/article/details/44237641

猜你喜欢

转载自blog.csdn.net/diyinqian/article/details/81297380