天天看點

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

eclipse 中導入java項目報錯:

DescriptionResourcePathLocationType

Java compiler level does not match the version of the installed Java project facet.

錯誤原因:安裝的jdk編譯版本與導入項目的jdk編譯版本不一緻。

解決:

(1)系統用的是哪個版本的jdk?

cmd–java -version

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

如上圖可知,我用的是1.8版本的

(2)在eclipse中,依次找到windows–perferences–java–installed JRES–add

找到安裝的時候jre所在的檔案夾選擇即可

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

(3)依次找到

windows–perferences–java–compiler

将其設定成1.8版本

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

(4)設定項目中對應的版本

依次找到項目–properties–java complier

把項目編譯版本設為1.8

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

(5)依次找到

項目–properties–project facets

将java版本設為1.8

JAVA導入項目報錯Description Resource PathLocation Type Java compiler level does not match the version of

(6)重新整理或重新導入項目即可