2

I'm following the instruction on Trailhead.

When I tried with the enterprise.wsdl I was able to generate the enterprise.jar using force-wsc-37.0.jar, js-1.7R2.jar and ST-4.0.8.jar.

Now I'm trying to generate the partner.jar but I'm getting this error:
Error: Not possible to find neither load the main class com.salesforce.ws.tools.wsdlc

I used the same command line to Enterprise and Partner. ($ java -classpath force-wsc-37.0.jar:js-1.7R2.jar:ST-4.0.8.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar)

2
  • Is the WSC Jar file (force-wsc-37.0.jar) in your working directory, or is it accessible via your classpath? It looks like you have the Rhino library as detailed in Building the Partner.jar API file Commented Aug 21, 2016 at 22:37
  • All the .jar files are in the same classpath, then I just go into the folder by cd example and try to run the command line Commented Aug 22, 2016 at 13:14

1 Answer 1

0

I found my issue.
My Maven was in version 2.2.1 and it required version 3.0 +. I just updated it and worked fine.

Thanks for who helped.

1
  • I am facing same issue when craeting Partner jar. I am not using Maven, it's a simple java project Exception in thread "main" java.lang.NullPointerException at com.sforce.ws.codegen.Compiler.<init>(Compiler.java:48) at com.sforce.ws.codegen.Generator.compileTypes(Generator.java:136) at com.sforce.ws.tools.wsdlc.run(wsdlc.java:129) How can I fix this?
    – Quest_sfdc
    Commented May 9, 2022 at 22:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .