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

前端 未结 14 1513
别那么骄傲
别那么骄傲 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:46

    All you need is to set JAVA_HOME path in your environment. In Windows 7 go to "System Properties -> Advanced -> Environment Variables" and add JAVA_HOME. The value in my case was:

    C:\Program Files\Java\jdk1.7.0_07

    This resolved the issue for me. This variable points Ant to the correct Java location.

提交回复
热议问题