0
  1. setup for java environment and eclipse working fine

  2. Navigate to http://mvnrepository.com/artifact/com.force.api/force-wsc in your browser and download the WSC pre-built .jar file that matches the API version of Salesforce you’re using.

  3. WSC uses the Rhino JavaScript framework, so if you don’t have this installed, navigate to https://developer.mozilla.org/en-US/docs/Rhino/Download_Rhino and download the latest .zip file. Un-archive the .zip file and move the folder to a location you’ll remember.

  4. Generating Java Stub Files (WSDL-based APIs)

    develop-->api-->downloaded wsdl file.

Trying in command prompt:

But getting in an error

C:>java - classpath F:\11\pathToJAR\wsc-23.jar com.sforce.ws.tools.wsdlc F:\11\pathToWsdl\enterprise.wsdl? F:\11\enterprise_stub.jar Exception in thread "main" java.lang.NoClassDefFoundError: û Caused by: java.lang.ClassNotFoundException: û 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) Could not find the main class: GÇô. Program will exit.

  • 1
    please avoid using the salesforce-crm tag and try to find tags specific for your question. – Samuel De Rycke Feb 12 '14 at 8:48
  • Agree. This is not a SFDC question. – Andrii Muzychuk Feb 12 '14 at 8:54
0

I also have done this and I didn't require any javascript framwork.

Just follow the instruction given on blow link

Salesforce for java

hope this will solve your problem.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.