sonarqubesonarqube-4.5jdk6

Sonarqube 4.5.1 compatibility with jdk 6


I am running a build with sonarqube 4.5.1 and JDK 6. I am getting this following error:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project test-util: The plugin java is not supported with Java 1.6.0_26: org/sonar/plugins/java/JavaPlugin : Unsupported major.minor version 51.0 

I found one document on internet which says that JDK 6 is no longer supported to run SonarQube starting from 4.5.1.

Could anyone please confirm , if this error message is because JDK 6 is no longer supported with sonarqube 4.5.1?

Thanks in advance.


Solution

  • Yes, you need JDK 7 or later (see How to fix: Unsupported major.minor version 51.0 error?).

    You can still build your project with JDK 6, but SonarQube analysis should be executed by JDK 7 or later.