Tags

, ,

Problem Statement:

Error: Unable to find compiler. Make sure that tools.jar is in your classpath: java.lang.ClassNotFoundException: com.sun.tools.javac.Main

Solution:

add tools.jar to your classpath like this,

java -cp <JAVA_HOME>/lib/tools.jar;c:/SalesForce/wsc/target/force-wsc-40.0.0-uber.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

Advertisements