无法击败詹金斯

时间:2018-10-28 22:09:31

标签: java jenkins

尝试执行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)

1 个答案:

答案 0 :(得分:2)

您正在尝试在Java 11上运行Jenkins。As you can see here, it is just experimentally supported.要启用在Java 11版本上运行的Jenkins,应添加--enable-future-java命令行标志。