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

前端 未结 9 1265
囚心锁ツ
囚心锁ツ 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:47

    Need to see whether you got ant folder moved by mistake or unknowingly. It is set in environment variables.I resolved this once as mentioned below.

    I removed ant folder by mistake and placed in another folder.I went to command prompt and typed "path". It has given me path as "F:\apache-ant-1.9.4\". So I moved the ant back to F drive and it resolved the issue.

    0 讨论(0)
  • 2020-12-13 13:48

    Please follow these steps

    1. In User Variables

      Set VARIABLE NAME=ANT_HOME VARIABLE PATH =C:\Program Files\apache-ant-1.9.7

    2.Edit User Variable PATH = %ANT_HOME%\bin

    1. Go to System Variables

      • Set Path =%ANT_HOME%\bin
    0 讨论(0)
  • 2020-12-13 13:49

    ANT_HOME is not being resolved. Change %ANT_HOME%\bin in the Path system environment variable to c:\apache-ant\apache-ant-1.8.2\bin.

    0 讨论(0)
提交回复
热议问题