java.lang.Error: Unresolved compilation problems:解決方案




參考網址:http://www.360doc.com/content/12/1015/17/4152160_241639166.shtml

問題:項目能正常啓動,但在系統登錄時卻報錯!MyEclipse 報錯問題。
原因:由於電腦上安裝了多個JDK版本,而MyEclipse IDE 使用默認版本,使得 IDE 的Compiler Compliance level 與 Installed JREs 版本不對應而導致錯誤。
解決方案:將 IDE 的Compiler Compliance level 與 Installed JREs 版本修改爲一致。(例如:Compiler Compliance level 使用1.5時,Installed JREs版本則使用jdk1.5.0 )
圖解:Compiler Compliance level:
 
 
Installed JREs:
 

發佈了76 篇原創文章 · 獲贊 15 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章