+ Start a Discussion
VILAS MahajanVILAS Mahajan 

create jar from wsdlc

hi ,
i have crate the jar file from wsdlc get the error "Exception in thread "main" java.lang.NoClassDefFoundError: org/stringtemplate/v4
James LoghryJames Loghry
See this thread:  https://developer.salesforce.com/forums/?id=906F00000008zLZIAY

It sounds like you're missing a couple of libraries.  Try adding them to (or correcting) your classpath.

Also, see the following link: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_quickstart_import_WSDLs.htm
Francis Gerard AlcalaFrancis Gerard Alcala
You need the StringTemplate jar.
You can download it from here: http://www.stringtemplate.org/

After that you need to add in the stringtemplate jas as parameter to your command.
Place the jar file to the location of your wsc.jar file and partner.wsdl file.
Your command would somehow be like this:

java -classpath wsc.jar;.\ST-4.0.8.jar com.sforce.ws.tools.wsdlc partner.wsdl .\partner.jar