java.lang.UnsupportedClassVersionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • GitHub comment 31#246106121
    via GitHub by tobiasbueschel
    ,
  • GitHub comment 1#260750427
    via GitHub by ibnesayeed
    ,
  • GitHub comment 5#237944736
    via GitHub by younkyul
    ,
  • Failed to load plugin class
    via GitHub by lucaiacono
    ,
  • Unable to use out of the box
    via GitHub by chaitjo
    ,
  • Standalone version crash on ubuntu
    via GitHub by brunosez
    ,
  • GitHub comment 1#260768504
    via GitHub by ibnesayeed
    ,
    • java.lang.UnsupportedClassVersionError: c/utils/CTokenFactory : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) 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 c.CMain.<init>(CMain.java:70) at Style50.runStyle50(Style50.java:156) at Style50.parseFiles(Style50.java:139) at Style50.main(Style50.java:206)

    Users with the same issue

    Eric HendersonEric Henderson
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    CasperCasper
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    chenjunjunchenjunjun
    1 times, last one,
    193 more bugmates