我正在尝试在 jboss-5.1.0.GA-src 的构建文件夹中运行 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。
如何修复它?
最佳答案
尝试使用 JDK 6 进行构建,因为 jboss-5.1.0.GA 版本太旧,可能不支持 JDK 8。
关于java - 无法构建JBoss,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46156996/