1. 程式人生 > >(圖解)Description Resource Path Location Type Java compiler level does not match the version of

(圖解)Description Resource Path Location Type Java compiler level does not match the version of

Description Resource Path Location Type Java compiler level does not match the version of

project 編譯問題,需要三處的jdk版本要保持一致,才能編譯通過。

1、在專案上右鍵properties->project Facets->修改右側的version  保持一致


2、window->preferences->java->Compiler->設定右側的Compiler compliance level



3、window->preferences->java->Installed JREs->設定或者選擇右側的Installed JREs



以上三處的jdk版本要保持一致,才能編譯通過

另外,一般新匯入的工程需要設定編碼格式,如下圖: