java.lang.UnsupportedClassVersionError: scala/Function1 : 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 Stack Overflow by Ernesto
, 10 months ago
scala/Function1 : Unsupported major.minor version 52.0
via GitHub by brooksph
, 1 year ago
minced : Unsupported major.minor version 52.0
via farenda.com by Unknown author, 1 year ago
JavaSolved : Unsupported major.minor version 52.0
via wordpress.com by Unknown author, 1 year ago
via Stack Overflow by Eitan
, 6 months ago
TestWEBClass : Unsupported major.minor version 52.0
via GitHub by javierwang
, 1 year ago
org/bimserver/JarBimServer : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: scala/Function1 : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at myproject.Main.main(Main.scala)

Users with the same issue

11 times, 21 hours ago
2 times, 3 days ago
Once, 3 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.