sdk System Administrator Legacy

java.lang.RuntimeException: wrong class format

Question

After migrating from Jahia 6.6.2.10 to DIgital Factory 7.1.0.0, the following exception was thrown at the server startup:

2016-08-23 15:18:54,955: ERROR [RulesListener] - wrong class format
java.lang.RuntimeException: wrong class format
at org.drools.compiler.commons.jci.compilers.EclipseJavaCompiler$2.findType(EclipseJavaCompiler.java:279)
at org.drools.compiler.commons.jci.compilers.EclipseJavaCompiler$2.findType(EclipseJavaCompiler.java:219)

Cause

This is a known issue with Drools and the JDK 8 (https://issues.jboss.org/browse/DROOLS-329)

Solution

After installing the same version of JDK 8 on each instance (jdk1.8.0_77), the issue was resolved.