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.