java.lang.UnsupportedClassVersionError: com/google/common/collect/ImmutableSet : Unsupported major.minor version 52.0

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.

,
via GitHub by Athou

You're using an older version of java with classes compiled for java7

Solutions on the web

via GitHub by nikhilmudholkar
, 11 months ago
com/google/common/collect/ImmutableSet : Unsupported major.minor version 52.0
via Stack Overflow by Syed Danish Ali
, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via Stack Overflow by Gaurav Goswami
, 9 months ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via Stack Overflow by Dylan Cronkhite
, 2 months ago
com/android/apksigner/ApkSignerTool : Unsupported major.minor version 52.0
via unrealengine.com by Unknown author, 1 year ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
via GitHub by Bvin
, 11 months ago
com/android/dx/command/Main : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: com/google/common/collect/ImmutableSet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
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 org.owasp.html.HtmlPolicyBuilder.(HtmlPolicyBuilder.java:163)
at teammates.common.util.Sanitizer.(Sanitizer.java:24)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:63)
at teammates.common.util.Url.addParamToUrl(Url.java:74)
at teammates.ui.controller.ActionResult.appendParameters(ActionResult.java:101)
at teammates.ui.controller.ActionResult.getDestinationWithParams(ActionResult.java:89)
at teammates.ui.controller.ShowPageResult.send(ShowPageResult.java:54)
at teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:65)
at teammates.ui.controller.ControllerServlet.doGet(ControllerServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at teammates.storage.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:29)
at com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

Users with the same issue

11 times, 3 days ago
2 times, 5 days ago
Once, 4 weeks ago
Once, 1 month ago
9 times, 2 months ago

Write tip

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