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
NemaJiNemaJi 

Step To Create Metadata.jar file

How To Create MetaData.jar File

(1)To get your WSDL, log into your organization and go to Your Name -> Setup -> App Setup -> Develop -> API. Generate the enterprise WSDL (unique to your organization) and the

Metadata WSDL, and save them to your desktop.


I was saved it as metadata.wsdl(must give wsdl extention to file) in my desktop.

install wsc.20 jar file to your desktop.

(2) Run this command

C:\Users\A\Desktop>set path=%path%;C:\Program Files\Java\jdk1.5.0_09\bin (Use only jdk1.6 not jdk1.7.it seem that wsc20.o was not cofigured for jdk1.7)


(3)copy tools.jar file from your jdk/lib and save it in jre/lib



(4) for creating Metadata.jar file run this command

java -classpath pathToWsc;pathToWscDependencies com.sforce.ws.tools.wsdlc
pathToWsdl/WsdlFilename pathToOutputJar/OutputJarFilename


In my case I run this command



C:\Users\A\Desktop>java -classpath wsc-20.jar com.sforce.ws.tools.wsdlc metadata.wsdl meta12
.jar




(5) It created meta12.jar in my desktop