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

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

    I had this issue with Environment as :

    • Windows 7
    • Java version jdk1.6.0_33
    • apache-ant-1.6.5

    I Was getting ant build message as "Unable to locate tools.jar. Expected to find it in E:\Java\jre6\lib\tools.jar", where my JDK was installed at E:\Java\jdk1.6.0_33\ and JRE at E:\Java\jre6\

    Cause:

    My issue was that I have ANT_HOME was set twice in the PATH system Environment variable at two different places (means some other variables in between).

    Solution:

    I removed the ANT_HOME variable that pointed to the wrong location and everything worked fine with me.

提交回复
热议问题