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
adam-jeeniadam-jeeni 

WSDL Java Client Generation Problem

Hi Folks,

 

I'm trying to generate the enterprise wsdl as outlined here: http://wiki.developerforce.com/page/Introduction_to_the_Force.com_Web_Services_Connector

 

However, installed on my machine I have java version "1.7.0_11", so I run: 

 

java -classpath wsc-22-jdk-1.7.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

 

and this gives me the following error:

 

javac: target release 1.6 conflicts with default source release 1.7.

 

So I downgraded to JDK 1.6 and now I get:

 

Unsupported major.minor version 51.0

 

Can please help me to solve this issue.

 

Thanks

Adam

 

SuperfellSuperfell

You'll need to make sure to have deleted all the class files generated with the 1.7 JDK before trying to use the 1.6 one.

Bindhyachal Kumar SinghBindhyachal Kumar Singh

Hi adam-jeeni

 

i think some of the java files are compiled by JDK1.7 and now you are using JDK1.6. So it's throwing a version issues.

 

You can delete all project from eclipse and also from disk. Then again try to create a project with JDK 1.6 and generate WSDL to JAR.