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
NaveenReddyNaveenReddy 

How to convert WSDL to jar file

Hi ,
 Can anyone help me in converting WSDL to jar file.

I have used below command but getting an error.

java -classpath C:\Users\Techrains\Desktop\Jars\force-wsc-32.1.0.jar;C:\Users\Techrains\Desktop\Jars\ST4-4.0.8.jar;C:\Users\Techrains\Desktop\Jars\appengine-api-1.0-sdk-1.9.10.jar;C:\Users\Techrains\Desktop\Jars\antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc metadata.wsdl metadata.jar  C:\Users\Techrains\Desktop\Jars\metadata.wsdl  C:\Users\Techrains\Desktop\Jars\metadata.jar


Note:I have placed dependant  jars and WSDL files in the correct path only.

Any help from you is really appreciated. Thanks in advance

Exception in thread "main" java.io.FileNotFoundException: metadata.wsdl (The sys
tem cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
urce)
        at java.net.URL.openStream(Unknown Source)
        at com.sforce.ws.wsdl.WsdlFactory.create(WsdlFactory.java:47)
        at com.sforce.ws.codegen.Generator.generate(Generator.java:90)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:115)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:149)
        at com.sforce.ws.tools.wsdlc.main(wsdlc.java:71)




Regards,
Naveen