如这些说明中所述,我下载了我的组织的enterprise.wsdl
文件,wsc-23.jar
从Web 服务连接器下载页面下载,并从包含两个下载文件的目录中运行以下命令:
java -classpath wsc-23.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar
这产生了这个输出:
[WSC23][wsdlc.run:348]Created temp dir: C:\Users\myName\AppData\Local\Temp\wsd
lc-temp-215798849-dir
[WSC23][wsdlc.<init>:110]Generating Java files from schema ...
[WSC23][wsdlc.<init>:110]Generated 290 java files.
[WSC23][wsdlc.compileTypes:298]Compiling to target default...
cannot find symbol
symbol: class RecordType
location: package com.sforce.soap.enterprise.sobject
cannot find symbol
symbol: class RecordType
location: package com.sforce.soap.enterprise.sobject
cannot find symbol
symbol: class RecordType
location: package com.sforce.soap.enterprise.sobject
cannot find symbol
symbol: class RecordType
location: package com.sforce.soap.enterprise.sobject
cannot find symbol
symbol: class RecordType
location: package com.sforce.soap.enterprise.sobject
Error: Compilation failed
为什么类RecordType
导致编译失败?