java.lang.UnsupportedClassVersionError: Bad version number in .class file         at java.lang.ClassLoader.defineClass2(Native Method)          at java.lang.ClassLoader.defineClass(ClassLoader.java:719)    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)                          at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)                                     at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195)    

jstock | atorrey | 7 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.
  2. 0
    samebug tip
    If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.
  3. 0

    Site needs installation instructions

    jstock | 7 years ago | atorrey
    java.lang.UnsupportedClassVersionError: Bad version number in .class file         at java.lang.ClassLoader.defineClass2(Native Method)          at java.lang.ClassLoader.defineClass(ClassLoader.java:719)    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)                          at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)                                     at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195)    
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Compatible?

    Google Groups | 7 months ago | Dinesh
    java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 52.0

  1. rafael 2 times, last 3 weeks ago
  2. andyglick 3 times, last 2 months ago
34 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    Bad version number in .class file         at java.lang.ClassLoader.defineClass2(Native Method)          at java.lang.ClassLoader.defineClass(ClassLoader.java:719)    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)                          at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)                                     at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195)    

    at java.security.AccessController.doPrivileged()
  2. Java RT
    URLClassLoader.findClass
    1. java.security.AccessController.doPrivileged(Native Method)
    2. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    2 frames