JDK 版本不在允许范围内 [英] JDK Version Not in Allowed Range

查看:67
本文介绍了JDK 版本不在允许范围内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Mule CE 3.7,它使用 Maven 来编译它的项目.问题是,在编译的时候,他返回这个错误:

I'm using Mule CE 3.7, who uses Maven to compile it's project. The problem is, when is compiling, he returns this error:

[ERROR] 检测到 JDK 版本:1.8.0-60 不在允许的范围 [1.7,1.8] 内.

我已经完成了我找到的所有解决方案,JAVA_HOME 和 PATH 已配置.

I already did all the solutions that i found, JAVA_HOME and PATH are configured.

如果我运行 Java 命令,它们会返回给我:

If i run Java commands, they return me this:

MBP-de-axz:~ axz$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

MBP-de-axz:~ axz$ javac -version
javac 1.8.0_60

MBP-de-axz:~ axz$ mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00)
Maven home: /usr/local/Cellar/maven/3.3.3/libexec
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
Default locale: pt_BR, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"

我已经像这样配置了我的项目的 Pom 文件:

I already configured the Pom file of my project like this:

<requireJavaVersion>
     <version>[1.7,1.9)</version>
</requireJavaVersion>

所有都指向相同的 Java 版本.这发生在我的 Mac 和 Windows 中.该项目仅在我更改为 Java 1.7 时才有效,但我可以使用 1.7,因为我的一个库使用了 Java 1.8.

So all is pointing to the same Java version. And this is happening in my Mac and Windows. The project only works if i change to Java 1.7, but i can use 1.7 because one of my libraries uses Java 1.8.

有人知道它是什么吗?

谢谢!

推荐答案

问题是 Mule 还不兼容 JDK 1.8,我需要使用 JDK 1.7

The problem is that Mule is not compatible yet with JDK 1.8, i need to use JDK 1.7

我应该阅读要求.

这篇关于JDK 版本不在允许范围内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆