Ant + Vista 64 : “Unable to locate tools.jar” (jre/jdk conflict?)

前端 未结 14 1508
别那么骄傲
别那么骄傲 2021-02-04 05:10

I\'m trying to use ant in a vista 64 environment to build some docbook/xml files.

However, I can\'t resolve this error message. Anybody have suggestions?

C:\\U

14条回答
  •  星月不相逢
    2021-02-04 05:38

    I had the same problem because my JAVA_HOME path was set incorrectly (just like the OP's). It was set to the bin of the jdk.

    So it was set to: C:\Program Files (x86)\Java\jdk1.6.0_25\bin

    When it should have been set to: C:\Program Files (x86)\Java\jdk1.6.0_25

    Updating this environmental variable fixed it for me.

提交回复
热议问题