1. 程式人生 > >eclipse java.lang.Error: Unresolved compilation problem並且專案依賴一堆感嘆號

eclipse java.lang.Error: Unresolved compilation problem並且專案依賴一堆感嘆號

確定Windows -> Preferances Java Compiler 、Java build Path Librarie 、 Project Facets(web專案有這個) jdk版本一致
再到 Windows -> Preferances -> Java -> Installed JREs 切換一下預設jdk(換一下勾選,我這裡有個jdk7和jdk8) ,Apply 等待一下progress,它應該在構建, 然後再把預設jdk切換回來,感嘆號消失專案就可以運行了。