java - Jboss 7 需要替代 JRE

标签 java jboss

有问题。在启动服务器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 上更改 JBOSS 的 jdk 吗?以及如何做到这一点?

最佳答案

我在 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.

关于java - Jboss 7 需要替代 JRE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31631905/

相关文章:

java - 大型内部类和私有(private)变量

java - JWS堆栈溢出错误

java - java中的通用列表初始化

java - 如何为经理和员工实现 map 并向 map 添加元素

java - Lambda 表达式条件的代码覆盖率单元测试

java - 跨子域的JSESSIONID

jboss - 添加Jboss启动/关闭逻辑

java - 如何设置 Eclipse 编辑器屏幕和包资源管理器 View ?

java - WebSphere Liberty 中 Jboss EJb3 注释 @SecurityDomain ("")和 WebSphere 注释 @Webcontext 的等效注释是什么

java - 从 JBoss 7.1.1 迁移到 Wildfly 时的 @Context 问题