ant - not recognized as an internal

后端 未结 8 2198
粉色の甜心
粉色の甜心 2020-12-09 09:49

I have installed ant(apache-ant-1.7.0). But when i run the ant command in dos command prompt, it says

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


        
相关标签:
8条回答
  • 2020-12-09 10:47

    For anyone that comes across this article:
    Always remember, don't put a space after each semicolon.


    Good:
    C:\Ninja;C:\ant

    Bad:
    C:\Ninja; C:\ant

    0 讨论(0)
  • 2020-12-09 10:47

    Step 1: Navigate to Advance System Setting, and then click on the advance tab there, click on environment variable button, here you can create environment variable

    Step 2: In the user variable create a new variable say "ANT_HOME" and provide a path to it: For example: VARIABLE_NAME = ANT_HOME VARIABLE_value = "D:\apache-ant-1.9.6"

    Step 3: Now append the path of the Ant home directory till bin in the path variable of the system variable

    Now open the cmd promt and type ant, if it is still unrecognized try running the cmd promt using admin mode, it will surely work

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