wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "ant command not running" Watch "ant command not running" New topic
Author

ant command not running

shalini pahwa
Greenhorn

Joined: Aug 30, 2005
Posts: 5
hi

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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
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.


Ping & DNS - my free Android networking tools app
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Hi

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

enjoy


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
Greenhorn

Joined: Aug 30, 2005
Posts: 5
hi
i have successfully installed ant. thanks for your help. Actually i have to develop Registry Registrar type of site like www.registry.in using Extensible Provisioning protocol.
i have installed all the required software
1. apache-ant-1.6.5-bin
2.j2sdk-1_4_2_09-windows-i586-p-iftw
3.Xerces-J-src.2.5.0
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

shalini
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant command not running