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

Posted 向上丶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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版本要保持一致,才能编译通过


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

 



以上是关于Description Resource Path Location Type Java compiler level does not match the version of(编译问题)(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

关于eclipse的Description:Resource Path Location Type The project cannot be built until build path error

Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" wa

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

maven-web项目刚创建报错:Description Resource Path Location Type JavaServer Faces 2.2 can not be installed :

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

软件工程 - SSM网页制作报错解决 - Description Resource Path Location Type Cannot change version of project fac(