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

前端 未结 9 1274
囚心锁ツ
囚心锁ツ 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.

提交回复
热议问题