My Oracle Support Banner

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

Last updated on FEBRUARY 13, 2020

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***


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: 


To view full details, 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 a vibrant support community of peers and Oracle experts.