When running the configure script, the following is printed:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/appian/configure/Menu: Unsupported major.minor version XX.X at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
The UnsupportedClassVersionError is thrown when the JVM tries to load a class and finds that the class file version is not supported. This particular issue occurs when a higher JDK version is used to compile the source file and a lower JDK version is used to run the program.
To correct the issue, perform the following:
JAVA_HOME
This article applies to Appian 7.9 and later.
Last Reviewed: January 2018