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
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
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