java.lang.UnsupportedClassVersionError

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.

  • java command line error
    via Stack Overflow by mr. wizz
    ,
  • 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: test/CustomUDF : 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 java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:278) at org.apache.hadoop.hive.ql.exec.FunctionTask.getUdfClass(FunctionTask.java:307) at org.apache.hadoop.hive.ql.exec.FunctionTask.createTemporaryFunction(FunctionTask.java:174) at org.apache.hadoop.hive.ql.exec.FunctionTask.execute(FunctionTask.java:74) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:86) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1631) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1390) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1197) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1024) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1014) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:250) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:202) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:786) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:619) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

    Users with the same issue

    Unknown visitor1 times, last one,
    harshg
    2 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    195 more bugmates