The ComputerLauncher.checkJavaVersion seems to have a problem when using Adopt OpenJDK 11 on Windows Server 2012 R2.
The command line java -version produces the following output:
openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)
I am guessing the date behind the version could be the issue.
Hi Martin Karing, what's the problem here? Does it throw an IOException? could you please add the log? thanks!
Ramon Leon: The issue appears when trying to start a windows slave that is supposed to run using the AdoptOpenJDK 11 version of java. When starting the slave the following messsage appears in the log:
Couldn't figure out the Java version of java
After that the slave does not launch.
PR filed: https://github.com/jenkinsci/jenkins/pull/4434
It was fixed in 2.217. Thanks Ramon Leon!