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
  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

    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)    
  3. 0

    Compatible?

    Google Groups | 6 months ago | Dinesh
    java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 52.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnsupportedClassVersionError with SonarQube Ant Task after Update to 5.1.1

    Stack Overflow | 2 years ago | Matthias
    java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 51.0

  1. Rafael Fischer Viola 1 times, last 7 days ago
  2. andyglick 3 times, last 1 month 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