function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gaurav Sinha 15Gaurav Sinha 15 

Unable to generate the Enterprise WSDL

Hello Developers,

I am unable to generate the enterprise WSDL, I am using Java 1.8

Below is the command i am issuing via command prompt
java -classpath force-wsc-31.1.0.jar:js-1.7R2.jar:ST-4.0.7.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

and i am getting this error:
Error: Could not find or load main class com.sforce.ws.tools.wsdlc


Below is the Screenshot of my working directory
Working Dirrectory


Please help me on this, any help will be appreciated.

Thanks
Gaurav Sinha
James LoghryJames Loghry

Gaurav,

See if one of these resolutions also fixes your issue: https://developer.salesforce.com/forums/ForumsMain?id=906F00000008rsyIAA (https://developer.salesforce.com/forums/ForumsMain?id=906F00000008rsyIAA)

Note:  It appears to be an issue with your classpath declaration.

If that doesn't solve it, unzip the jar file and see if that package / class exists.  And if THAT doesn't work, then open a github issue here: https://github.com/forcedotcom/wsc/

Ganesh HegdeGanesh Hegde
Hi Gaurav,

You can use only one jar "force-wsc-31.1.0.jar" to generate enterprise Jar

I always run this command from Java/bin folder ->  java -DcompileTarget=1.8 -classpath wsc-22.jar com.sforce.ws.tools.wsdlc enterprise.xml D:\enterprise.jar