Running the Spotfire Server Configuration Tool on a local computer may fail with "A JNI error has occurred, please check your installation and try again" error.
You may run into following error while running uiconfig.bat script locally:
C:\Users\746515\Spotfire Configuration Files\spotfireconfigtool>uiconfig.bat
Picked up _JAVA_OPTIONS: -Xmx512M
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/spotfire/server/tools/confui/ConfigurationMain has been compiled by a
more recent version of the Java Runtime (class file version 55.0), this version
of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)The error states that spotfireconfigtool.jar was compiled at a higher version of Java ( JDK 11) than the version with which you tried to run it. More specifically, in this case, you tried to run it with Java 8, which causes it to fail. To resolve the issue, uninstall 1.8 version that is currently installed on your local computer and download JDK version that matches the version of Java used by your Spotfire Server.
Documetation reference: Running the configuration tool on a local computer
Comments
0 comments
Article is closed for comments.