I'm trying to run the Data Loader program from Salesforce.com. I have to load a jar file, and am using the following command.
java -jar "C:\Program Files\salesforce.com\Apex Data Loader 14.0\Data Loader.jar"
When I do this, I get the following error.
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)
So, I figured out that I need to tell Java where to find the library swt-win32-3063. I use the following command.
java -Djava.library.path="C:\Program Files\salesforce.com\Apex Data Loader 14.0\" -jar "C:\Program Files\salesforce.com\Apex Data Loader 14.0\DataLoader.jar"
And this time I get this error.
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.
It looks like java sees the dot in the path, and thinks that is the name of a class. since there is obviously no file called "Files\salesforce.com\apex", it generates an error.
How do I get around this?
Edited by: haydenmuhl on Jan 27, 2009 10:34 AM
Edited by: haydenmuhl on Jan 27, 2009 10:35 AM