You need to sign in to do that
Don't have an account?

Troubleshoot Data Loader from the command line
HI,
I have a problem when I try to run the Encrypt.bat file in the data loader using the command prompt. I installed ava 8 Update 202 (64-bit), Java(TM) SE Development Kit 11.0.2 (64-bit). Zulu 11.29 (64-bit) then I installed Data Loader version 45.0.0.
As I want to use command line interface datta loader first i tried to run encrypt.bat. The following problem occurs:
c:\Program Files (x86)\salesforce.com\Data Loader\bin>encrypt.bat -g test
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/salesforce/dataloader/security/EncryptionUtil 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)
I tried different versions of java jdk and jre but the result seems the same. Do you have some suggestions?
thank you
I have a problem when I try to run the Encrypt.bat file in the data loader using the command prompt. I installed ava 8 Update 202 (64-bit), Java(TM) SE Development Kit 11.0.2 (64-bit). Zulu 11.29 (64-bit) then I installed Data Loader version 45.0.0.
As I want to use command line interface datta loader first i tried to run encrypt.bat. The following problem occurs:
c:\Program Files (x86)\salesforce.com\Data Loader\bin>encrypt.bat -g test
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/salesforce/dataloader/security/EncryptionUtil 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)
I tried different versions of java jdk and jre but the result seems the same. Do you have some suggestions?
thank you
setx -m JAVA_HOME "C:\Program Files\Zulu\zulu-11"
(Not sure if this is "best" way to do this, as I think this makes the value "permanent" and is applied across the entire system, so I assume this may break other Java apps that also refer to JAVA_HOME but need a "standard" version of Java.
This is from: https://help.salesforce.com/articleView?id=000231105&type=1
https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IIH4#
The issue got resolved by pointing JAVA_HOME to the Zulu JDK!! Thanks..!!
How do you point JAVA_HOME to Zulu JDK in Mac OS?
bollyshare (https://www.bollyshare.info)
https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk