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

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

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

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 8#234228149
    via GitHub by vdmitriyev
    ,
  • Cannot run solr (cannot open log file)
    via Stack Overflow by Zack
    ,
  • Another Plea for help building Kodi For android
    via by Unknown author,
  • Packaging Error... PLEASE HELP
    via by Unknown author,
  • GitHub comment 32#241616684
    via GitHub by jjethwa
    ,
  • Java error when trying to join hub
    via by Mark Matthews,
    • java.lang.UnsupportedClassVersionError: org/jpmml/sklearn/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:643) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)

    Users with the same issue

    Unknown visitor1 times, last one,
    jf-ast
    1 times, last one,
    Unknown visitor1 times, last one,
    Cafecanudo
    2 times, last one,
    bpbhat77
    2 times, last one,
    195 more bugmates