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

project 编译问题,须要三处的jdk版本号要保持一致。才干编译通过。

1、在项目上右键properties->project Facets->改动右側的version  保持一致(图解)Description Resource Path Location Type Java compiler level does not match the version of-LMLPHP

2、window->preferences->java->Compiler->设置右側的Compiler compliance level

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

3、window->preferences->java->Installed JREs->设置或者选择右側的Installed JREs

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveXV6b25ndGFv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

以上三处的jdk版本号要保持一致,才干编译通过

另外,一般新导入的project须要设置编码格式,例如以下图:

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

04-16 08:54