我正在尝试安装 hybris,但在安装时我在执行 ant clean 命令时遇到问题。
我正在使用最新版本的java,它应该可以工作。 我还在正确的路径中使用了setantenv.bat。
这是堆栈跟踪:
Apache Ant(TM) version 1.9.1 compiled on May 15 2013
C:\work\trail\hybris\bin\platform>**ant clean**
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=128M; support
s removed in 8.0
Buildfile: C:\work\trail\hybris\bin\platform\build.xml
[echo] C:\work\trail\hybris\bin\platform/tomcat/bin
**BUILD FAILED**
C:\work\trail\hybris\bin\platform\build.xml:20: The following error occurred w
le executing this line:
C:\work\trail\hybris\bin\platform\resources\ant\antmacros.xml:73: The followin
error occurred while executing this line:
C:\work\trail\hybris\bin\platform\resources\ant\util.xml:234: -
**** **WRONG JAVA VERSION** ****
Environment check failed: You are using a not supported version of Java.
Please make sure you are using Java version 1.7 or later.
Your current Java version is: 1.8.0_40
TIP: If you are using eclipse you can configure a different JVM under
Preferences->Java->Installed JREs.
Total time: 1 second
最佳答案
由于您能够让 Hybris 与 JDK 7 一起工作,因此 Java JDK 版本 1.8.0_40 似乎不具有对 Hybris 5.2.0.6 的向后兼容性/支持。如果你有勇气,你可能想用 Hybris 打开一个 bug。
关于java - 执行ant clean,构建失败,java版本错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29002895/