reset password
Author Message
naimaryan1@yahoo.com
Posts: 10
Posted 17:21 Apr 13, 2011 |

My Environment:

Windows (Windows 7)

I downloaded ant 1.8.2 from Apache.org

JDK : jdk1.6.0_22

My Paths for bot User Variables & System Variables are:

ANT_HOME = C:\apache-ant-1.8.2;

JAVA_HOME = C:\Program Files\Java\jdk1.6.0_22;

PATH = C:\Program Files\Java\jdk1.6.0_22\bin;C:\apache-ant-1.8.2\bin;  

I ALSO tried

PATH = %JAVA_HOME%\bin;%ANT_HOME%\bin;

RESTARTED THE SYSTEM

and typed ant -version in the cmd

And got this Error: "ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME"

PLEASE HELP

 

 

 

cysun
Posts: 2935
Posted 17:28 Apr 13, 2011 |

Try removing the semicolon at the end.

naimaryan1@yahoo.com
Posts: 10
Posted 17:36 Apr 13, 2011 |

Dear Dr. Sun

Thank you for the quick reply, it works :)