Sonarqube 2025.4 JRE incompatibility

Hi,

We recently update Sonar to Server 2025.4 Enterprise on prem version running on docker.

We jave a project update to Java 18 and have this error when try to execute Sonar scanner throw the pipeline en develop stage

RROR: Error during SonarScanner execution

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

I don’t find any information about JRE supported version before Java 17.

Does anyone have the same problem? And how can yo solve this.

Thanks

Hi,

Welcome to the community!

This error is telling you that you’re using too old a version of Java (11), not that you’re using a too new one.

Current versions of the scanner will actually run on Java 11. I suggest you upgrade SonarScanner CLI (if not your version of Java.)

 
HTH,
Ann