1. Create your WSDL from Salesorce. Let say for this example its name is "MyWS.wsdl"
2. Download the below jars (Version can be difference),
D:\SFDC Migration>java -classpath force-wsc-29.0.0.jar;ST4-4.0.7.jar;antlr-runtime-3.5.jar;tools.jar com.sforce.ws.tools.wsdlc MyWS.wsdl MyWS.jar
It will create the jar file named as "MyWS.jar"
2. Download the below jars (Version can be difference),
- antlr-runtime-3.5.jar
- force-wsc-29.0.0.jar
- ST4-4.0.7.jar
- tools.jar
3. Copy paste all jars and wsdl in a folder.
4. Open command prompt and change directory to above folder location and finally run the below command,
D:\SFDC Migration>java -classpath force-wsc-29.0.0.jar;ST4-4.0.7.jar;antlr-runtime-3.5.jar;tools.jar com.sforce.ws.tools.wsdlc MyWS.wsdl MyWS.jar
It will create the jar file named as "MyWS.jar"