Closed GoogleCodeExporter closed 9 years ago
Did you try:
java -DcompileTarget=1.5 -classpath wsc-22-jdk-1-5.jar
com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar
From the code, this should work. I didnt try it out.
public void compile(String[] files) throws ToolsException {
String target = System.getProperty("compileTarget");
if (target == null) {
target = "1.6";
}
Original comment by manoj.ch...@gmail.com
on 6 Jul 2011 at 10:34
Yes, that worked!
Thanks.
Original comment by erodrig...@msights.com
on 6 Jul 2011 at 10:39
Original comment by jesperudby
on 8 Feb 2013 at 7:47
Can you please tell me where we have above code. I have wsc-22-jdk-1.7.jar
file. I have extracted this jar using 7zip.
I am getting the following error.
D:\wsdl>java -classpath wsc-22-jdk-1.7.jar com.sforce.ws.tools.wsdlc
enterprise.wsdl enterprise.jar
[WSC][wsdlc.run:312]Created temp dir:
C:\Users\SukumarM\AppData\Local\Temp\wsdlc-temp-8434733771251972742-dir
[WSC][wsdlc.<init>:79]Generating Java files from schema ...
[WSC][wsdlc.<init>:79]Generated 447 java files.
[WSC][wsdlc.compileTypes:262]Compiling to target 1.6...
javac: target release 1.6 conflicts with default source release 1.7
Error: Failed to compile
Please tell me whether the above solution works for me or not. If above
solution works for me, tell me where I will find that code to change target
release
Original comment by sukumar....@gmail.com
on 13 Sep 2013 at 11:18
Original issue reported on code.google.com by
erodrig...@msights.com
on 6 Jul 2011 at 10:27