Issue while executing Sonarqube scan - 8.9

The version we are currently using is : SonarQube 8.9
We have been trying to run sonarqube scan on one of our applications and getting the below error:
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main : Unsupported major.minor version
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(

Versions being used:
openjdk version “1.8.0_302”
OpenJDK Runtime Environment (build 1.8.0_302-b08)
OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)

Could someone please help us out here?

Could someone please look into my query? It would be really helpful.


You’ll need to upgrade the version of Java you’re running analysis with. Java 8 is no longer supported as a runtime. Docs. (Analyzing Java 8 code is, and will continue to be supported.)