java.lang.UnsupportedClassVersionError: Bad version n umber in .class file

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Google Groups by Marcus Haebler

Update "latest" to Java 8 on DockerHub.

,
Expert 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.

Solutions on the web

via Coderanch by Prashanth Nellutla, 10 months ago
Bad version n umber in .class file
via Coderanch by Ganeshkumar cheekati, 11 months ago
Bad version n umber in .class file
via GitHub by ashusheva
, 2 years ago
Bad version n umber in .class file
via Oracle Community by 807600, 2 months ago
Bad version n umber in .class file
via freecol by pigboy306
, 1 year ago
Bad version n umber in .class file
via GitHub by GoogleCodeExporter
, 2 years ago
Bad version n umber in .class file
java.lang.UnsupportedClassVersionError: Bad version n umber in .class file
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$100(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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
340 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.