无法构建JBoss

时间:2017-09-11 13:32:57

标签: java jboss

我正在尝试在jboss-5.1.0.GA-src的build文件夹中运行build.sh

构建失败,显示消息:

_default:compile-classes:
    [javac] Compiling 4 source files to /home/yyi4492/jboss-5.1.0.GA-src/messaging/output/classes
warning: [options] source value 1.5 is obsolete and will be removed in a future release
warning: [options] target value 1.5 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
/home/yyi4492/jboss-5.1.0.GA-src/messaging/src/main/org/jboss/mq/server/jmx/Queue.java:64: error: cannot access Service
        delegate.addNotificationListener(listener, filter, handback);
                ^
  class file for org.jboss.system.Service not found
1 error
3 warnings

我正在使用Jdk 1.8.0_144作为JAVA_HOME。

我该如何解决?

1 个答案:

答案 0 :(得分:1)

尝试使用JDK 6进行构建为jboss-5.1.0.GA版本太旧,可能不支持JDK 8.