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 enterprise.wsdl enterprise.jar

and i am getting this error:
Error: Could not find or load main class

Below is the Screenshot of my working directory
Working Dirrectory

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

Gaurav Sinha
James LoghryJames Loghry


See if one of these resolutions also fixes your issue: (

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:

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 enterprise.xml D:\enterprise.jar