Ant path error on Windows 8


I’ve followed the instructions here:

but I jut get an error saying “Error: Failed to run “ant -version”, make sure you have ant installed and added
to your PATH.”

This is where ant is, and this is indeed added to my PATH:


I don’t get it. I’ve had loads of issues with this stuff on my Mac too. It’s the biggest barrier to using Ionic. DLing and actually using it is fine, if I use PhoneGap Build.