Jboss 7 需要替代 JRE
Jboss 7 need alternative JRE
有问题。在启动服务器 jboss 7.1.1 之前,我遇到了一个问题:
**Error:** JDK 1.7 (or earlier) should be specified either as project SDK or
alternative JRE
我在项目中使用 jdk 1.8。我只能使用 1.6 JRE 来处理 JBOSS。
如果我在项目中使用 1.8,并使用 jboss 的 1.6 jre,我会在不支持的 major.minor 版本 52.0.
中出错
我可以在 1.8 上将 jdk 更改为 JBOSS 吗?以及如何去做?
我在 JBoss 开发者开发者论坛上找到了下面的帖子。
简短的版本是您需要将各种错误修复反向移植到 JBoss AS 7,以便在 Java 8 JRE 上获得它 运行。升级到 Wildfly 会更好/更容易。 (他说。)
Re: AS 7 on Java 8 by Tomaz Cerar Apr 8, 2015 6:18 AM (in response to Matija Vizintin)
Any big reason you cannot upgrade to WildFly 8?
Core issue that prevents boot of AS7 on JDK8 is
https://issues.jboss.org/browse/WFLY-2057
which was fixed by
https://github.com/wildfly/wildfly/commit/fa93ceff49c3e84851cb8b00157e4fbed1d2cdb7
You could apply this commit to
https://github.com/wildfly/wildfly/releases/tag/7.2.0.Final-testsuite-fix
tag and rebuild it.
but, this will only make sure server starts on JDK8, there ware
handful of other fixes / changes that we needed to address to make
sure testsuite passes properly.
In any case, i would recommend you to go with WildFly 8.2.0.Final.
有问题。在启动服务器 jboss 7.1.1 之前,我遇到了一个问题:
**Error:** JDK 1.7 (or earlier) should be specified either as project SDK or
alternative JRE
我在项目中使用 jdk 1.8。我只能使用 1.6 JRE 来处理 JBOSS。
如果我在项目中使用 1.8,并使用 jboss 的 1.6 jre,我会在不支持的 major.minor 版本 52.0.
中出错我可以在 1.8 上将 jdk 更改为 JBOSS 吗?以及如何去做?
我在 JBoss 开发者开发者论坛上找到了下面的帖子。
简短的版本是您需要将各种错误修复反向移植到 JBoss AS 7,以便在 Java 8 JRE 上获得它 运行。升级到 Wildfly 会更好/更容易。 (他说。)
Re: AS 7 on Java 8 by Tomaz Cerar Apr 8, 2015 6:18 AM (in response to Matija Vizintin)
Any big reason you cannot upgrade to WildFly 8?
Core issue that prevents boot of AS7 on JDK8 is https://issues.jboss.org/browse/WFLY-2057
which was fixed by https://github.com/wildfly/wildfly/commit/fa93ceff49c3e84851cb8b00157e4fbed1d2cdb7
You could apply this commit to https://github.com/wildfly/wildfly/releases/tag/7.2.0.Final-testsuite-fix tag and rebuild it.
but, this will only make sure server starts on JDK8, there ware handful of other fixes / changes that we needed to address to make sure testsuite passes properly.
In any case, i would recommend you to go with WildFly 8.2.0.Final.