• Yomesh Panchal
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I keep getting this error when compiling my wsdl with wsc?

 

Java version:

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

 

[WSC][wsdlc.<init>:79]Generating Java files from schema ...
[WSC][wsdlc.<init>:79]Generated 363 java files.
java.io.FileNotFoundException: C:\Program Files\Java\jre6\lib\tools.jar (The sys
tem cannot find the file specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at com.sforce.ws.tools.wsdlc$ToolsJarClassLoader.<init>(wsdlc.java:425)
        at com.sforce.ws.tools.wsdlc$Compiler.findCompilerInToolsJar(wsdlc.java:
346)
        at com.sforce.ws.tools.wsdlc$Compiler.<init>(wsdlc.java:334)
        at com.sforce.ws.tools.wsdlc.compileTypes(wsdlc.java:261)
        at com.sforce.ws.tools.wsdlc.<init>(wsdlc.java:88)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:312)
        at com.sforce.ws.tools.wsdlc.main(wsdlc.java:303)
Error: Unable to find compiler. Make sure that tools.jar is in your classpath: j
ava.io.FileNotFoundException: C:\Program Files\Java\jre6\lib\tools.jar (The syst
em cannot find the file specified)