title: Unsupported major.minor version Exception for sonar-scanner
body: <p>I am trying to analyze my source code using SonarQube. I am trying to use <code>sonar-scanner</code> as my tool to run analysis from command line. I followed the guidelines presented in this documentation article: <a href="http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner" rel="noreferrer">http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner</a></p>
  
  <p>When I try to test the installation by running <code>sonar-scanner -h</code> I am getting the following error:</p>
  
  <pre><code>➜  ~ sonar-scanner -h
  Exception in thread "main" 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.defineClass(ClassLoader.java:800)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  </code></pre>
  
  <p>From the error it looks like its not finding the right version for JAVA/JRE to run the cli tool. My understanding was that the tool should work with any Java 1.7+ version. I am using <code>Oracle JDK 1.7.0_55</code>. I also tried using <code>OpenJDK 1.8</code> but I am still getting the same error. I also checked my <code>JAVA_HOME</code> variable is set to the right JDK directory.</p>
  
  <p>Any help in the right direction is appreciated.</p>