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

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

    I had this problem on a 64-bit Windows 7 machine and Ant 1.8.2. The solution was to use the admin tools mentioned by #bigfix to set the environment variables. Follow the Ant installation instructions for Windows. But do not set the path as %ANT_HOME%\bin. Instead, use an explicit path such as C:\jdk-1.5.0.05\bin.

    My first test failed because my command window was already open and using the old env vars. Close it and open a new one. Then try the test. It worked for me.

提交回复
热议问题