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)
Could someone please help us out here?
This is generally a problem of version of Java installed on the machine where you run the scan.
Do you have Oracle JRE 11 or OpenJDK 11 installed?
Thanks for getting back promptly !
The machine where the sonar scanner is running is having the below java version:
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 you please advise further?
Could someone please look into my last query?
It would be great if someone could have a look at the query.