Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Sockets and Internet Protocols and the fly likes ant command not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "ant command not running" Watch "ant command not running" New topic

ant command not running

shalini pahwa

Joined: Aug 30, 2005
Posts: 5

i am getting this error

unable to locate tools.jar: expected to find it in C:\Program Files\Java\jre1.5.0_04\lib\tools.jarBuildfile: build.xml does not existBuild failed

i have appended my classpath to include C:\ant\lib\ant.jar;

then I appended my path with C:\ant\bin;

I then made a new variable and called it ANT_HOME and set the environment as C:\ant

I have followed the same procedure still i am getting the same error
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
The build file is not found. If you start Ant by typing "ant" at the command line, it expects the build.xml file to be in the same directory. If it is somewhere else, or named differently, you need to call Ant by typing "ant -f path/to/build/file.xml", thus specifying which build file to use.
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824

Set the JAVA_HOME property to point the location
where the java is installed.....

Suppose your java is installed in c:\jdk1.5.0_04 then
set JAVA_HOME=c:\jdk1.5.0_04

and restart the system ........and see it works


Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
shalini pahwa

Joined: Aug 30, 2005
Posts: 5
i have successfully installed ant. thanks for your help. Actually i have to develop Registry Registrar type of site like using Extensible Provisioning protocol.
i have installed all the required software
1. apache-ant-1.6.5-bin
4. epp-rtk-java-0.9.2

i am using tomcat server and jsp. Now i dont know wht to do next. i have searched it on google but i didnt get any example or guidelines.
if u people have any idea then please help

Have you tried LearnNowOnline?
subject: ant command not running