+ Start a Discussion
Giovanni CapitaniGiovanni Capitani 

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
Rick Paugh 3Rick Paugh 3
I'm having this exact same problem.  I've tried updating environment variables and matching versions between 32-bit/64-bit and jre/jdk.  No luck.
Lawrence Coffin (P)Lawrence Coffin (P)
Yep, same issue here. Any solutions found yet?
Lawrence Coffin (P)Lawrence Coffin (P)
Just figured out the solution. You have to point JAVA_HOME to the Zulu JDK that the DataLoader now ships with. So, in this case, run as admin:

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
Hegde ChinmayaHegde Chinmaya
Is this issue solved , I am facing the same issue , After installing dataloader 45.0
Katherine Claire RobertoKatherine Claire Roberto
I'm having the same issue :(
Katherine Claire RobertoKatherine Claire Roberto
Hi guys ! I solved my issue try this link it's my post from a different thread. Hope this work for you too.

https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IIH4#
Antony De la rosaAntony De la rosa
hello katherine claire roberto ami I still get the same error and actulize the jdk with the link
Suman Kumar 26Suman Kumar 26
Hi Katherine,

The issue got resolved by pointing JAVA_HOME to the Zulu JDK!! Thanks..!!
Olu Akin-JamesOlu Akin-James
Hi Suman,
How do you point JAVA_HOME to Zulu JDK in Mac OS?
Suman Kumar 26Suman Kumar 26
Hi James, I got this error long back in windows. As far as I can recall the resolution, can you try few options like setting proper environment variables path of Zulu, few changes to the files in the Zulu folder of the c drive program files.. while modifying the file contents plz refer some other sources.. Thanks, Suman Kumar
ravi Sharma 161ravi Sharma 161
Hi James, I got this error bollyshare (https://www.bollyshare.info) long back in windows. As far as I can recall the bollyshare (https://www.bollyshare.info) resolution, can bollyshare (https://www.bollyshare.info) you try few options like setting proper bollyshare (https://www.bollyshare.infoenvironment variables path of Zulu, few changes to the files bollyshare (https://www.bollyshare.info) in the Zulu folder of the c drive bollyshare (https://www.bollyshare.info) program files.. while modifying bollyshare (https://www.bollyshare.infothe file contents plz refer some other sources.. 

bollyshare (https://www.bollyshare.info)
surendra nukalasurendra nukala
I installed latest version of Zulu jdk, it solved the problem.
https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk
Walker Stevenson 19Walker Stevenson 19
Thank you Surendra--this worked.