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

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

    I downloaded ant (http://ant.apache.org/bindownload.cgi), unzipped to my C drive, and used the windows 'doskey' command:

    doskey ant=C:\apache-ant-1.9.6\bin\ant.bat $*
    

    this will work as long as you use the same command console, to make it permanent is more difficult: http://darkforge.blogspot.com/2010/08/permanent-windows-command-line-aliases.html

提交回复
热议问题