java.lang.UnsupportedClassVersionError: Bad version number 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

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

,
Expert tip

If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.

Solutions on the web

via Jenkins JIRA by Jean-Baptiste Lièvremont, 1 year ago
Bad version number in .class file
via Jenkins JIRA by Jean-Baptiste Lièvremont, 1 year ago
Bad version number in .class file
via atlassian.com by Unknown author, 2 years ago
via Coderanch by Shashank Sharma, 11 months ago
Bad version number in .class file
via Oracle Community by 1001448, 1 year ago
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at hudson.DNSMultiCast.(DNSMultiCast.java:26)
at hudson.model.Hudson.(Hudson.java:691)
at hudson.model.Hudson.(Hudson.java:605)
at hudson.WebAppMain$2.run(WebAppMain.java:221)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
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, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
341 more bugmates

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