‘ant’ is not recognized as an internal or external command

前端 未结 9 1292
囚心锁ツ
囚心锁ツ 2020-12-13 13:22

I have the same issue as this user: ant - not recognized as an internal

however unfortunately none of the solutions have worked for me in that post or any other. I\

9条回答
  •  盖世英雄少女心
    2020-12-13 13:37

    create a script including the following; (replace the ant and jdk paths with whatever is correct for your machine)

    set  PATH=%BASEPATH%
    set ANT_HOME=c:\tools\apache-ant-1.9-bin
    set JAVA_HOME=c:\tools\jdk7x64
    set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%
    

    run it in shell.

提交回复
热议问题