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 40#47251981
    via GitHub by aymanhab
    ,
  • Hadoop in Eclipse environment
    via Stack Overflow by user1047260
    ,
  • Steps to run Java code in Matlab environment?
    via Stack Overflow by shree
    ,
  • GitHub comment 92#207543012
    via GitHub by mattpilm
    ,
  • GitHub comment 40#47250904
    via GitHub by chrisdembia
    ,
  • log4j first run errors
    via GitHub by divious1
    ,
  • Has Java 7 happened already?
    via GitHub by huntc
    ,
  • the launcher can't be started
    via GitHub by obe567
    ,
    • java.lang.UnsupportedClassVersionError: org/opensim/modeling/Model : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source)

    Users with the same issue

    harshgharshg
    2 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    195 more bugmates