IBM Support

UnsupportedClassVersionError in a Liberty JVM server when starting Web application

Question & Answer


Question

When using CICS Explorer V5.3 for Eclipse development and Java 7 in a CICS JVM server why does my web application fail to install with the following error reported in the Liberty messages.log?

java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/cicsdev/restapp/CICSApplication, offset=6 com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase 365" at ....

Answer

CICS Explorer V5.3 with z/OS Explorer V3.0 installs with Java 8 by default. As a result, Java class files that require Java 8 are built. As a solution either update your CICS JVM server to use Java 8, or modify your Eclipse workspace to produce compatible bytecodes (such as Java 7) by modifying the project facets of the Java projects you are building.

  • Note for Java 8 support in JVM servers in CICS TS V5.2 or V5.1 APAR PI52819 needs to be applied, see Java 8 – Now in CICS TS V5

  • To modify a Java project facet in Eclipse, right click on the project, select Properties, then from the left hand menu select Project Facets. Find the Java project facet in the list, change it to a version equal to, or lower than, your JVM server version, such as 1.7.

Phil Wakelin
IBM CICS Design & Strategy - Java Adoption

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"Liberty","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

Modified date:
02 March 2017

UID

dwa1359048