I downloaded the CloudBees CI release 2.361.1.2 MSI Windows installer and when executing it, the service fails with the following stack trace:
SEVERE: Running with Java class version 52, which is older than the Minimum required version 55. See https://www.jenkins.io/redirect/java-support/ java.lang.UnsupportedClassVersionError: 52.0 at executable.Main.verifyJavaVersion(Main.java:145) at executable.Main.main(Main.java:109) Jenkins requires Java versions [17, 11] but you are running with Java 1.8 from C:\apps\CloudBeesCoreCMSep\jre java.lang.UnsupportedClassVersionError: 52.0 at executable.Main.verifyJavaVersion(Main.java:145) at executable.Main.main(Main.java:109)
The CloudBees CI MSI installers have built-in a JRE. Before release 2.361.1.2 CloudBees CI supported both Java 11 and Java 8, but since release 2.361.1.2 the only one supported is Java 11. Unfortunately, CloudBees CI MSI installers for the release 2.361.1.2 the built-in JRE is still Java 8 and that’s why this issue appears. This has been fixed in the following releases, beginning with release 2.361.2.1.
To fix this issue, you would need to follow below steps:
First of all, you need to download and install the Java 11 package (For example, the appropriate Java 11 for Windows).
Once Java 11 is installed on the host, you need to open the file $PATH_WHERE_YOU_HAVE_INSTALLED_CBCI/jenkins.xml and replace the content of the variable <executable>%BASE%\jre\bin\java</executable> for the path where is located the Java 11 binary that you have installed in the previous step. For example, if you installed the Java 11 JRE in the path C:\Program Files\Java\jre-11.0.16, you would need to replace the content with the following: <executable>C:\Program Files\Java\jre-11.0.16\bin\java</executable>.
To apply the above changes, you will need to restart the service.