Ant command not found in bash (windows 32bit)

13,752

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:/us‌​‌r/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.

Share:
13,752
Sheena Agrawal
Author by

Sheena Agrawal

Updated on June 04, 2022

Comments