C:\Users\jenkins>java -version
java version “1.8.0_144”
Java™ SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot™ 64-Bit Server VM (build 25.144-b01, mixed mode)
JavaProject : compiled java project using gradle build script.
followed by executing the sonar-scanner.
Detailed log has been attached .
.sonarScan.log (91.5 KB)
I don’t think SonarQube 7.2 supported Java 11. Since that version is past EOL anyway, you should upgrade at your earliest convenience to 7.9.3, the current LTS, and then on to 8.4.1, the current version. Then you’ll be able to analyze using Java 11.
Let me paraphrase my setup.
I used
SonarQube 7.2.
sonar-scanner-cli-4.4.0.2170 sonar-java-plugin-5.6.0.15032.jar in E:\sonarqube-7.2\extensions\plugins
& jdk 1.8 has been used to compile the source code , because source code is developed in Java 8.
could you please highlight me , where java 11 comes in to the picture ?
Correct me - if my understanding is wrong.
Regards,
LnT
The error you list in your title is about “major version 55” being unsupported. The internet tells me that corresponds to Java 11. Somehow, whether or not you’re compiling with Java 8 or just to Java 8, you appear to be analyzing with Java 11.