We are trying to use Sonarscanner to scan a Java Maven project to the Sonarcloud destination.
It is throwing the following error:
08:04:31.303 ERROR: 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
I have Java in the path variable and using the JDK version 17.0.1
This indicates that somewhere, Java 8 is being used to run Maven. Appending -X to your Maven command should give you a pretty quick idea what version of Java is actually being used.