You need to sign in to do that
Don't have an account?
Getting the sforce Samples to run
Here is a tip for newbies like me, to get the sforce sample to run:
Once I had JBuilder setup, and I tried to compile the Java sample, I kept getting errors like:
- java.lang.NoClassDefFoundError: javax.xml.rpc does not exist at line X
- java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
- java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
...and 2 to 3 others.
To fix this I had to add a couple libraries to JBuilder:
Tools->Configure Libraries
Add a new folder under User Home, called Axis
Add the following library paths to that folder:
- [<apache home>/Tomcat 4.1/webapps/axis/WEB-INF/lib/jaxrpc.jar]
- [<apache home>/Tomcat 4.1/webapps/axis/WEB-INF/lib/axis.jar]
- [<apache home>/Tomcat 4.1/webapps/axis/WEB-INF/lib/commons-logging.jar]
- [<apache home>/Tomcat 4.1/webapps/axis/WEB-INF/lib/commons-discovery.jar]
- [<apache home>/Tomcat 4.1/webapps/axis/WEB-INF/lib/saaj.jar]
This should enable your project to run without errors
Is there a better way to do this?
Also, make sure you read the sforce Release Notes that are installed in the sforce folder under Start->Programs->salesforce.com..., next to the sforce sample. There is ket setup info there.
Erik