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 netbeans.org by Unknown author, 1 year ago
via linuxhospital.com by Unknown author, 1 year ago
java.lang.UnsupportedClassVersionError: Bad version n umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 hours ago
Once, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 6 days ago
Once, 2 weeks ago
9 times, 1 month ago
338 more bugmates

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