Java compiler level does not match the version of the installed Java project facet等常见编译器问题
2016-12-26 16:35
676 查看
1、Building workspace has encountered a problem
最近用MyEclipse10在做一个项目时,MyEclipse出现这个故障,Building workspace has encountered a problem.Error occured during the build.经过尝试,其他方法无效,
下面这个方法完美解决了这个问题。
(1)关闭当前工作空间,即关闭MyEclipse.
(2)找到工作空间下的
"/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”
该文件内容如下:
(3)删除刚才找到的com.genuitec.eclipse.ast.deploy.core.prefs
文件。
(4)重启MyEclipse,故障解除!
提示:com.genuitec.eclipse.ast.deploy.core.prefs在这个文件中存储了一些部署项目的信息。
删了这个部署的项目的信息就没有错误了。
2、Java compiler level does not match the version of the installed Java project facet错误的解决
因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误。明明源码一模一样,为什么项目复制到另一台机器上,就会报“javacompiler level does not match the version of the installed java project facet”错误呢?
如图所示:
其实要解决也很简单,在资源管理器下,找到项目所在的目录,在.settings子目录里面,用文本编辑器打开org.eclipse.wst.common.project.facet.core.xml配置文件,如图所示:
修改红色画线部分,让它与项目的编译器版本设置保持一致即可。
要查看项目的编译器版本设置,在Eclipse环境中,鼠标右键选择项目,点击Properties,选择Java Compiler,可以在窗口右边看到编译器版本,如图所示:
3、Description Resource Path Location Type ...project facets version
project 编译问题1、properties->project Facets->修改右侧的version 保持一致
2、window->preferences->java->Compiler->设置右侧的Compiler compliance level
3、window->preferences->java->Installed JREs->设置或者选择右侧的Installed JREs
以上三处的jdk版本要保持一致,才能编译通过
相关文章推荐
- 解决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问题处理
- Java问题解决:Java compiler level does not match the version of the installed Java project facet.
- 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问题
- 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.问题解决办法
- 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问题怎么解决
- 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.
- 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
- 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
- Java compiler level does not match the version of the installed Java project facet.解决办法
- 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 的解决方案
- (转) 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.