Sonar MSBuild

166 views
Skip to first unread message

Jerome Santosh

unread,
Jul 28, 2017, 9:39:33 AM7/28/17
to SonarQube
Hello,
   I was successful in executing  Sonar-msbuild on 2 systems , but on one of the system it gives the following error message . Can you please let me know if I am missing anything. 


SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$000(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.sonarsource.scanner.cli.Main.  Program will exit.
Exception in thread "main" 
The SonarQube Scanner did not complete successfully
19:04:41.835  Creating a summary markdown file...
19:04:41.835  Post-processing failed. Exit code: 1

Regards
Jerome

G. Ann Campbell

unread,
Jul 28, 2017, 10:01:10 AM7/28/17
to SonarQube, jerome....@gmail.com
Hi,

This is about the version of Java you're running analysis with. You need to upgrade to Java 8.


Ann
Reply all
Reply to author
Forward
0 new messages