JNI Error, java.lang.UnsupportedClassVersionError, while running docker-compose up
Mandelag opened this issue · 0 comments
Im using this version of java:
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
And when running docker-compose up all of the containers return the same error:
c2_1 | Error: A JNI error has occurred, please check your installation and try again
c2_1 | Exception in thread "main" java.lang.UnsupportedClassVersionError: com/example/ClusteringApp has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
c2_1 | at java.lang.ClassLoader.defineClass1(Native Method)
c2_1 | at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
c2_1 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
c2_1 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
c2_1 | at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
c2_1 | at java.lang.ClassLoader.defineClass1(Native Method)
c2_1 | at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
c2_1 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
c2_1 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
c2_1 | at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
c2_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
c2_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
c2_1 | at java.security.AccessController.doPrivileged(Native Method)
c2_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
c2_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
c2_1 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
c2_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
c2_1 | at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)