Java入门到精通——调错篇之Eclipse Java compiler level dose not match the version of the installed Java project

一、错误现象。

java项目显示红色,并且类中引用包中会报红色错误,在Eclipse下面显示下面错误提示如图:

二、错误原因。

通过字面意思一看就很明白java的版本不对。

三、解决办法。

3.1右键项目“Properties”,在弹出的“Properties”窗口左侧。

3.2单击“Project Facets”,打开“Project Facets”页面,更改java版本

对了大家最后别忘了点击Apply

时间: 2024-10-14 06:21:25

Java入门到精通——调错篇之Eclipse Java compiler level dose not match the version of the installed Java project的相关文章

Java入门到精通——调错篇之Eclipse No Java virtual machine was found after searching the following locations

一.错误现象. 在一次启动Eclipse的时候弹出了下面的错误 二.错误原因 原因是没有找到javaw.exe文件的路径. 三.解决方案 在eclipse根目录下找到eclipse.ini加入下面一句话 -vm D:\Java\jdk1.8.0_25\bin(jdk的bin目录路径)

Java入门到精通——调错篇之Spring2.5利用aspect实现AOP时报错: error at ::0 can't find referenced pointcut XXX

一.问题描述及原因. 利用Aspect注解实现AOP的时候出现了error at ::0 can't find referenced pointcut XXX.一看我以为注解写错了,结果通过查询相关资料是因为Spring2.5与中的aspectjweaver.jar 和aspectjrt.jar这两个jar包与JDK1.7不匹配. org.springframework.beans.factory.BeanCreationException: Error creating bean with n

eclipse中切换jre后报错:Java compiler level does not match the version of the installed Java project facet.

项目移除原来的jre环境lib后,添加本地的jre,报错如下: Java compiler level does not match the version of the installed Java project facet. 问题就出在切换了java版本上: 在项目的properties中,myeclipse->project facets->java version改成1.7 即可.

Java compiler level does not match the version of the installed Java project facet.问题

从同事那里拷贝过来的web项目,导入到eclipse中,出现Java compiler level does not match the version of the installed Java project facet 问题. 如图所示: 其实要解决也很简单,在资源管理器下,找到项目所在的目录,在.settings子目录里面,用文本编辑器打开org.eclipse.wst.common.project.facet.core.xml配置文件,如图所示: 修改红色画线部分,让它与项目的编译器版

Java compiler level does not match the version of the installed Java project fac

Java compiler level does not match the version of the installed Java project fac 问题一: 问:项目图标报错,Problems 试图有一条错误显示“Java compiler level does not match the version of the installed Java project facet.” . 答:这个是因为Facted Project 中的Java 版本设定与项目的Java 版本设定不一致

Eclipse------导入项目后出现Java compiler level does not match the version of the installed Java project facet

报错信息:Java compiler level does not match the version of the installed Java project facet 解决方法: 1.点击工具栏上的"Window" ->"Preferences"->"Java"->"Compiler"->选择高版本jdk 2.右键项目->"Properties"->"J

maven -- 问题解决(三)Java compiler level does not match the version of the installed Java project facet

问题: Java compiler level does not match the version of the installed Java project facet 解决方法如下: properties->Java Compiler,修改JDK版本,然后Apply

解决java compiler level does not match the version of the installed java project facet【转载】

原博文地址http://blog.csdn.net/chszs/article/details/8125828 Java compiler level does not match the version of the installed java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误.明明源码一模一样,为什么项目复制到另一台机器上,就会报"java compiler level does not match t

java compiler level does not match the version of the installed java project facet

Java compiler level does not match the version of the installed java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误.明明源码一模一样,为什么项目复制到另一台机器上,就会报“java compiler level does not match the version of the installed java project facet”错误呢? 如图所示