Author | Message |
---|---|
rain0204
Posts: 6
|
Posted 01:15 Oct 01, 2010 |
I downloaded apache-ant-1.8.1-bin in my local directory. added path as C:\ant-1.8.1-bin. Still i am getting the error as ---> 'ant' is not recognized as an internal or external command, operable program or batch file. Can anybody help. Thanks in advance. |
alomo
Posts: 70
|
Posted 07:31 Oct 01, 2010 |
First of all, your PATH looks strange. I has to be something like C:\ant-1.8.1\bin (a back slash before bin, not a dash )
Then, the ANT_HOME shall be C:\ant-1.8.1 (without bin) So for the system variable ANT_HOME it will be value %ANT_HOME%\bin Same is for the JAVA_HOME variable - it shows the path to the folder with JDK installed, not to the bin folder. And I think that after setting up the environment variables you need to restart the system. Last edited by alomo at
07:43 Oct 01, 2010.
|
cysun
Posts: 2935
|
Posted 07:39 Oct 01, 2010 |
As alomo said, you need to restart the system or at least log out then log in again for the new environment variables to take effect. And assuming you unzipped Ant into the folder C:\ant-1.8.1-bin, you should add C:\ant-1.8.1-bin\bin to PATH. |
rain0204
Posts: 6
|
Posted 09:39 Oct 01, 2010 |
Problem solved! I need to add C:\ant-1.8.1-bin\bin to PATH.
|