We could resolve the compilation errors in Eclipse but got an unsupported Java class version error in the WildFly log when i2b2.war was deployed. Please note that this error comes only when the war file is created from Eclipse using Ant. We are able to build and deploy i2b2.war using Ant from the command line.
Both Java 8 and 17 are installed on the machine running the Eclipse and Ant build. It looks like Ant build in Eclipse chose Java 17 instead of Java 8. This is despite setting JAVA_HOME to Java 8.
Following are the steps that we took to build and deploy from Eclipse:
The above steps caused multiple unsupported Java version errors in the WildFly log. Below is one example:
12:58:53,911 INFO [org.apache.axis2.deployment.DeploymentEngine] (ServerService Thread Pool -- 163) org.apache.axis2.deployment.DeploymentException: java.lang.UnsupportedClassVersionError: edu/harvard/i2b2/ontology/ws/OntologyService has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
--
You received this message because you are subscribed to a topic in the Google Groups "i2b2 Install Help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/i2b2-install-help/-wzdoimr9Tc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to i2b2-install-h...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/i2b2-install-help/eb8dfc91-a266-4e85-b3e5-b087d2524befn%40googlegroups.com.