Ant command not found in bash (windows 32bit)
Check your PATH when you are in the bash session.
echo $PATH
Don't forget that, after updating the PATH as mentioned in your link (through the Environment variable control panel), you need to open a new CMD session and launch git-bash.exe
in order for that session to inherit the modified PATH.
cd c:\path\to\git
git-bash.exe
echo $PATH
The OP confirms in the comment that the PATH is now:
d/Users/h169717/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin/:/mingw32/bin:/usr/bin:/d/Users/h169717/bin:/c/Program Files/apache-ant-1.9.6/bin:/c/Program Files/Java/jre1.8.0_72/bin:/c/Program Files/apache-ant-1.9.6/bin:/usr/bin/vendor_perl:/usr/bin/core_perl
And ant
is working.
Sheena Agrawal
Updated on June 04, 2022Comments
-
Sheena Agrawal almost 2 years
I installed Apache ant using the link http://www.mkyong.com/ant/how-to-install-apache-ant-on-windows/
I am trying to build my files in git bash.
It shows the following error when I type ant:bash:ant:command not found
I want to use
cd build
command.