You need to sign in to do that
Don't have an account?
Java runtime errors with command line Data Loader 14.0
I'm trying to run the Data Loader from the command line, and am running into problems. First, I tried running it using as instructed in the Help & Training section.
C:\WINDOWS>java -jar DataLoader.jar
Unable to access jarfile DataLoader.jar
So, I tried specifying the full path.
C:\WINDOWS>java -jar "C:\Program Files\salesforce.com\Apex Data Loader 14.0\Data
Loader.jar"
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3063 in
java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Widget.<clinit>(Widget.java:66)
at com.salesforce.lexiloader.process.LexiLoaderRunner.main(LexiLoaderRun
ner.java:53)
Then, I tried to tell it where to find the library.
C:\WINDOWS>java -Djava.library.path="C:\Program Files\salesforce.com\Apex Data L
oader 14.0\" -jar "C:\Program Files\salesforce.com\Apex Data Loader 14.0\DataLoa
der.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: Files\salesforce/com\
Apex
Caused by: java.lang.ClassNotFoundException: Files\salesforce.com\Apex
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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Files\salesforce.com\Apex. Program will exit.
What the heck am I doing wrong?!