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

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.项目内容没错但是项目上报错,不影响运行

上一篇:openssl的用法


下一篇:201521123004 《Java程序设计》第12周学习总结