java.lang.UnsupportedClassVersionError

tip

Update "latest" to Java 8 on DockerHub.

tip

You're using an older version of java with classes compiled for java7

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.

tip

If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Unsupported major.minor version 52.0
    via GitHub by prox212
    ,
  • GitHub comment 1407#291815174
    via GitHub by rburgst
    ,
  • Jena for java 1.7
    via Stack Overflow by sandeepvarma penmetsa
    ,
    • java.lang.UnsupportedClassVersionError: org/jf/baksmali/baksmali : 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 brut.androlib.ApktoolProperties.loadProps(ApktoolProperties.java:54) at brut.androlib.ApktoolProperties.get(ApktoolProperties.java:37) at brut.androlib.ApktoolProperties.get(ApktoolProperties.java:32) at brut.androlib.Androlib.getVersion(Androlib.java:656) at brut.apktool.Main.usage(Main.java:438) at brut.apktool.Main.main(Main.java:100)

    Users with the same issue

    Casper
    2 times, last one,
    Mark
    5 times, last one,
    harshg
    4 times, last one,
    Unknown visitor1 times, last one,
    muffinmannen
    1 times, last one,
    193 more bugmates