I'm trying to start Jenkins using:
java -jar jenkins.war
I got this error:
java.lang.UnsupportedClassVersionError: 54.0 at Main.main(Main.java:128)
This problem comes after an update of my development environment, I'd switched to :
Based on the error message that you are getting:
In other words, despite upgrading your Java to Java 10, you must be using an older version to start Jenkins.
Check the launch script for Jenkins and make sure that it uses the correct JRE installation.
If you are launching Jenkins using java -jar jenkins.war
, check what java -version
tells you ... at the same command prompt.