You need to sign in to do that
Don't have an account?
Facing issue while setting up Java Client Application
I am trying to setting up Java Client Application in Desktop for Salesforce. I am referrring below document for performig this task:
http://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_code_set_up_client.htm
But while performig below command in CMD, I am getting error:
java -classpath C:\Project\Salesforce\force-wsc-30.0.0.jar com.sforce.ws.tools.wsdlc C:\Project\Salesforce\partner .\partner.jar
Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/stringtemplate/v4
/STGroupDir
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:142)
at com.sforce.ws.tools.wsdlc.main(wsdlc.java:64)
Caused by: java.lang.ClassNotFoundException: org.stringtemplate.v4.STGroupDir
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)
... 2 more
http://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_code_set_up_client.htm
But while performig below command in CMD, I am getting error:
java -classpath C:\Project\Salesforce\force-wsc-30.0.0.jar com.sforce.ws.tools.wsdlc C:\Project\Salesforce\partner .\partner.jar
Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/stringtemplate/v4
/STGroupDir
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:142)
at com.sforce.ws.tools.wsdlc.main(wsdlc.java:64)
Caused by: java.lang.ClassNotFoundException: org.stringtemplate.v4.STGroupDir
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)
... 2 more