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

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

    I got the same issue. Successfully resolved.

    1. Check your systeminformation that jenkins see : your_jenkins_url/systemInfo
    2. Look for "JAVA_HOME" variable in the "Environment Variables" section. In my case I was not able to found it.

    So if you do not see this variable it means that your variable was not set for the user that jenkins run under. You need to put "JAVA_HOME" in to the "system variables" section of environment variables, not "user variables".

    restart jenkins after this and your problem must be fixed.

提交回复
热议问题