File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT not recognisex as internal or external command

 
jaya kemmannu
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I have installed jdk 1.7 version, now when i run ant from the command prompt i get below error.

'ant' is not recognized as an internal or external command, operable program or batch file.

I have set ANT_HOME and JAVA_HOME in my class path as shown below.

ANT_HOME = C:\apache-ant-1.7.0-bin\apache-ant-1.7.0
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_37


C:\Program Files\RA2HP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_37;C:\apache-ant-1.7.0-bin\apache-ant-1.7.0\;
C:\Program Files\ActivIdentity\ActivClient\;C:\Program Files (x86)\ActivIdentity\ActivClient\


Regards,
Jaya



 
Vijay Vishwa
Ranch Hand
Posts: 38
1
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Path environment variable ANT bin folder should also be in the path.
Try adding.
path=%path%;C:\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin;
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic