Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant command not running

 
shalini pahwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shalini pahwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic