Custom Java Class Produces "Bad version number in .class file" java.lang.UnsupportedClassVersionError Exception (Doc ID 1043130.1)

Last updated on JULY 24, 2016

Applies to:

Oracle Commerce Guided Search / Oracle Commerce Experience Manager - Version 5.1.0 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Sept-2013***

Symptoms

When attempting to use a custom Java class (e.g., a CADK Java Manipulator component in a Forge pipeline, a custom Deployment Template component), the Java process fails with a java.lang.UnsupportedClassVersionError exception and a "Bad version number in .class file" error message. 


In the case of a custom CADK adapter run through Forge, the exception will appear as an ERROR-level message in the Forge log, along these lines: 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms