Description Resource Path Location Type Java compiler level does not match the version of(编译问题)

时间:2023-03-09 04:50:17
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(编译问题)

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

Description Resource Path Location Type Java compiler level does not match the version of(编译问题)

3、window->preferences->java->Installed JREs->设置或者选择右侧的Installed JREs
Description Resource Path Location Type Java compiler level does not match the version of(编译问题)

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

另外,一般新导入的工程需要设置编码格式,如下图:
Description Resource Path Location Type Java compiler level does not match the version of(编译问题)