Getting "java.lang.UnsupportedClassVersionError:org/jboss/modules/Main has been compiled by a more recent version of the Java Runtime " error in EAP 8.
Issue
-
Getting below error while trying to migrate from 7.x to EAP 8.
ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.UnsupportedClassVersionError: org/wildfly/core/embedded/EmbeddedProcessStartException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 ...... ...... Caused by: java.lang.UnsupportedClassVersionError: org/wildfly/core/embedded/EmbeddedProcessStartException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_144] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_144]
-
Getting "java.lang.UnsupportedClassVersionError" while starting/stopping EAP 8.
Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/modules/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
Environment
- JBoss Enterprise Application Platform (EAP)
- 8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.