尝试执行jenkins时出现以下错误:
Oct. 28, 2018 6:07:25 P.M. Main main
SEVERE: Running with Java class version 55.0, but 52.0 is required.Run
with the --enable-future-java flag to enable such behavior. See
https://jenkins.io/redirect/java-support/
java.lang.UnsupportedClassVersionError: 55.0
at Main.main(Main.java:139)
Jenkins requires Java 8, but you are running 11+28 from
/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
java.lang.UnsupportedClassVersionError: 55.0
at Main.main(Main.java:139)
答案 0 :(得分:2)
您正在尝试在Java 11上运行Jenkins。As you can see here, it is just experimentally supported.要启用在Java 11版本上运行的Jenkins,应添加--enable-future-java命令行标志。