Understanding `java.lang.UnsupportedClassVersionError`

Error during SonarQube Scanner execution java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

This error is Java’s painfully obscure way of saying

The version of Java you’re trying to use is too old to run this program.

To get your current version of Java, go to a command line and run

java --version

To get the version of Java you should be using, check the docs for your product:

A post was split to a new topic: UnsupportedClassVersionError even though default version is Java 17