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
pichpich 

Generating an Enterprise WSDL Java Library

Hi,

When I run this command

 

java -classpath c:\wsc-18.jar;JAVA_HOME/lib/tools.jar com.sforce.ws.tools.wsdlc c:\enterprise.wsdl c:\Enterprise.jar

 

I got error

 

[WSC][wsdlc.run:311]Created temp dir: C:\DOCUME~1\PICH\LOCALS~1\Temp\wsdlc-t
emp-3921276044750449158-dir
[WSC][wsdlc.<init>:79]Generating Java files from schema ...
[WSC][wsdlc.<init>:79]Generated 347 java files.
Exception in thread "main" java.io.FileNotFoundException: Unable to find file: c
om/sforce/ws/tools/aggregateResult.template
        at com.sforce.ws.template.Template.createInputStream(Template.java:129)
        at com.sforce.ws.template.Template.exec(Template.java:88)
        at com.sforce.ws.tools.wsdlc.generateAggregateResult(wsdlc.java:151)
        at com.sforce.ws.tools.wsdlc.<init>(wsdlc.java:85)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:311)
        at com.sforce.ws.tools.wsdlc.main(wsdlc.java:302)

 

 

Location of tools.jar, wsc-18.jar and enterprise.wsdl is correct.

Here is the instruction link that I follow http://wiki.developerforce.com/index.php/Force.com_for_Google_App_Engine_Setup_Guide_Java

 

Thanks

Pich

pedrosampaiopedrosampaio

i am facing the same error. have you already fix this error?

pichypichy

Hi,I use wsimport of Glassfish generate and it's working.

jesperfjjesperfj

I haven't tested this, but I think you'll have to escape the backslashes in the windows path names (i.e. c:\\path\\to\\somewhere) and it might also help to put the whole path in double-quotes.