1. 程式人生 > >A cycle was detected in the build path of project

A cycle was detected in the build path of project

java

在ecilpse 的 控制臺 旁邊 的problems 旁邊 出現 A cycle was detected in the build path of project ...
解決Eclipse中Java工程間循環引用而報錯的問題
如果我們的項目包含多個工程(project),而它們之間又是循環引用的關系,那麽Eclipse在編譯時會拋出如下一個錯誤信息:
“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

A cycle was detected in the build path of project