Project 'XX' is targeting a 1.6 runtime, but is compiled against '....
来源:互联网 发布:完美国际js是什么意思 编辑:程序博客网 时间:2024/05/21 08:52
之前eclipse会又不同程度的卡死,然后我就在进程中把强制杀死,可能因为这个原因吧,现在打开一些项目,报如下的错误:
DescriptionResourcePathLocationTypeIncompatible .class files version in required binaries. Project 'Capital-Plugins28' is targeting a 1.6 runtime, but is compiled against 'Capital-Plugins28/lib/capitalapi.jar' which requires a 1.7 runtimeCapital-Plugins28Build pathBuild Path Problem提示的大概错误是:该像的jdk编译版本是1.6,而其中引用到的jar包需要JDk1.7的编译环境。
求解?
我目前的做法是:
由于项目必须要依赖那个jar包,所以需要把项目的编译jdk版本由1.6改为1.7:
具体操作如下:
1、先在eclipse中把该项目关闭,或者直接退出eclipse
2、在盘符下找到项目,进入项目的根目录
3、修改根目录下的“.project"这个文件,把下面的xml内容的加粗部分改为你实际的1.7的具体版本
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_06"><attributes><attribute name="owner.project.facets" value="java"/></attributes></classpathentry>4、进入根目录/.settings,打开:org.eclipse.wst.common.project.facet.core.xml这个文件。把第一个加粗部分改为具体版本,第二个加粗改为1.7即可
<?xml version="1.0" encoding="UTF-8"?><faceted-project> <runtime name="jdk1.7.0_06"/> <installed facet="java" version="1.7"/></faceted-project>5、进入根目录/.settings,打开:org.eclipse.jdt.core.prefs,把下面加粗的三个改为1.7即可。
eclipse.preferences.version=1org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabledorg.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.source=1.7
阅读全文
0 0
- Project 'XX' is targeting a 1.6 runtime, but is compiled against '....
- MXnet: RuntimeError: module compiled against API version a but this version of numpy is 9
- module compiled against API version 9 but this version of numpy is 6
- module compiled against API version 9 but this version of numpy is 7的解决方法
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xa but this version of numpy is 0xb
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
- tensorflow RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9问题
- 【project】gen already exists but is not a source folder
- 解决【Apache is running a threaded MPM, but your php module is not compiled to be threadsafe.】
- Apache is running a threaded MPM, but your php module is not compiled to be threadsafe. you need to
- Mac安装Tensorflow,运行项目报错: module compiled against API version 0xa but this version of numpy is 0x9
- What is a Project?
- Life is but a span
- The goal you specified requires a project to execute but there is no POM in 错误
- Error: Your project contains C++ files but it is not using a supported native build system
- Android开发之应用层到驱动层的接口实现(二)
- 使用python处理中文csv文件,并让excel正确显示中文
- JDK&JRE&SDK环境变量配置
- VC资源分配、释放表
- 2017年即将过半_免费OA系统行业OA厂商大转变
- Project 'XX' is targeting a 1.6 runtime, but is compiled against '....
- sqlite3 调用sqlite3_exec查询数据时出现"callback requested query abort"
- PHP设计模式系列
- linux下配置邮件发送系统信息
- MySQL时间戳group by操作
- ubuntu卡在锁屏界面,如何解决
- 路由的几个基本概念-直连路由/网关路由/主机路由/网络路由/动态路由/静态路由/默认路由
- JavaWeb——文件上传和下载
- OS 之 避免死锁(银行家算法)