Sonar is failing

What version are we using? SonarQube enterprise Version 8.9.; Scanner - java-17 (adopt OpenJDK)

Hello,
We upgraded our sq to 9.4 and for the builds using java 8, and we’re seeing the below error.

“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”

Could you please let us know what steps should we need to take further to avoid this error?

Thanks.

Hey there.

As noted in the upgrade notes:

Scanners require Java 11
Java 11 is required for SonarQube scanners. Use of Java 8 is no longer supported. See the documentation on Scanner Environment for more information.