Play Games

Search This Blog

Monday, July 3, 2017

javac: target release 1.6 conflicts with default source release 1.8 Error: Failed to compile Error

Problem: When generating jar file using enterprise/partner wsdl file using command prompt,sometimes you get the above error.

Solution: Check the wsc file you used.If you are using java 1.7 or above,wsc-19.jar won't support. you can use wsc-23.jar file.

Example: If you want to generate partner.jar file use command like this
java -classpath wsc-23.jar com.sforce.ws.tools.wsdlc wsdl.jsp.xml partner.jar
where wsc-23.jar is the jar file,wsdl.jsp.xml is the partner wsdl file.
Note: All the files should be placed inside folder as shown in the image below.
tools.jar
wsc-23.jar
wsdl.jsp.xml

No comments:

Post a Comment