Description Resource Path Location Type Java compiler level does not match t
来源:互联网 发布:国产007经典视频知乎 编辑:程序博客网 时间:2024/05/16 10:27
导入别的地方移过来的maven项目时我们经常会碰到一个问题,Description Resource Path Location Type Java compiler level does not match......什么意思?Java 编译器级别与安装的 Java项目构面的版本不匹配。
怎么解决?网上给了好几种解决方案。
1.右键项目,选择Properties,再选择Project facets,把Java版本改成你电脑上的Java版本(JDK版本)。
2.选择Windows->Preferences->java->Compiler,然后把JDK版本改成你的Java版本。
3.右键项目,选择build path,点击comfigure build path,然后在library中把已有的JRE library remove掉,然后Add library,选择你电脑上安装的JRE版本。
好吧,博主遇到一件尴尬的事情就是这些方法都没有用。看见那个红色的XX真的很心烦。
但是问题总是有人已经解决了的。
最后的解决方法是找到项目位置。打开本项目的.setting下org.eclipse.jdt.core.prefs文件,把文件内的版本修改成与你的电脑一致。
eclipse.preferences.version=1org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabledorg.eclipse.jdt.core.compiler.codegen.methodParameters=do not generateorg.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserveorg.eclipse.jdt.core.compiler.compliance=1.7org.eclipse.jdt.core.compiler.debug.lineNumber=generateorg.eclipse.jdt.core.compiler.debug.localVariable=generateorg.eclipse.jdt.core.compiler.debug.sourceFile=generateorg.eclipse.jdt.core.compiler.problem.assertIdentifier=errororg.eclipse.jdt.core.compiler.problem.enumIdentifier=errororg.eclipse.jdt.core.compiler.problem.forbiddenReference=warningorg.eclipse.jdt.core.compiler.source=1.7
问题解决!
0 0
- Description Resource Path Location Type Java compiler level does not match t
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- (图解)Description Resource Path Location Type Java compiler level does not match the version of
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of(图解)
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the v
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- 写好Java代码的30条经验总结
- OLTP新贵G家F1的替代者TiDB
- Face++ API调用
- mybatis实战教程(mybatis in action)
- 深度优先搜索集合的所有组合的一半 [优化][笔记]
- Description Resource Path Location Type Java compiler level does not match t
- Bricks —— 判断矩形能否嵌套
- hihocoder #1043 完全背包
- vi/vim 的使用
- JVM -XX: 参数介绍
- java虚拟机的基本结构
- 探究C++中的菱形继承
- 数据库连接池简单理解
- 工厂设计模式