java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)

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

Solutions on the web

via Jenkins JIRA by Laurent Schoelens, 1 year ago
Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)
via Jenkins JIRA by Laurent Schoelens, 1 year ago
Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)
via docx4java.org by Unknown author, 2 years ago
Bad version number in .class file (unable to load class com.sun.istack.FinalArrayList)
via Stack Overflow by Randyka Yudhistira
, 8 months ago
org/ocpsoft/rewrite/servlet/impl/RewriteServletRequestListener : Unsupported major.minor version 51.0 (unable to load class org.ocpsoft.rewrite.servlet.impl.RewriteServletRequestListener)
java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at hudson.security.PermissionScope.(PermissionScope.java:70)
at hudson.security.PermissionScope.(PermissionScope.java:95)
at hudson.security.Permission.(Permission.java:179)
at hudson.security.Permission.(Permission.java:292)
at jenkins.model.Jenkins.(Jenkins.java:3817)
at hudson.WebAppMain.installLogger(WebAppMain.java:256)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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