You receive a java.lang.UnsupportedClassVersionError or a "bad class file" error (e.g., class file has wrong version 61.0, should be 52.0) when you attempt to compile or run custom Java code that utilizes SiteMinder SDK libraries.
This issue is caused by a Java version mismatch between the JDK used to compile the code (or the compiled version of the provided JAR files) and the Java Runtime Environment (JRE) used to execute it. For example, a class file version of 61.0 corresponds to Java 17, while version 52.0 corresponds to Java 1.8. If you attempt to run code compiled for Java 17 on a Java 1.8 runtime, the JRE cannot recognize the newer class format.
To resolve this issue, you must ensure that your compilation environment and runtime environment use matching Java versions.