Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

时间:2021-07-23 18:45:11

1、Window->Show View->Problems

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

2、在项目上右键properties->project Facets->修改右侧的version  保持一致

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

3、window->preferences->Java->Compiler->设置右侧的Compiler compliance level

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

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

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

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

6、另外,一般新导入的工程需要设置编码格式,如下图:

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行

7、修改jsp的编码格式

Type Java compiler level does not match the version of the installed Java project facet.项目内容没错但是项目上报错,不影响运行