• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in configuring ANT....msg displays is "Buildfile: build.xml does not exist!"

 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi iam a newbie to java. Iam trying to configure ant on the eclipse IDE.

Following is path given for ant in eclipse:-
C:\Program Files (x86)\Apache Software Foundation\apache-ant-1.7.0\bin\ant.bat

But iam not able to run the ANT. it is giving me the following msg on the console of eclipse:-

Buildfile: build.xml does not exist!
Build failed

Please refer the attachments of screen shots taken for more information.

I want to know one more thing also that apart from giving the path of ANT in eclipse is there any other configuration required in my overall machine to run ANT like we used to specify the path of java_home, path etc in system variables ?

please help me sort out this issue.
thanks in advance
scr1.jpg
[Thumbnail for scr1.jpg]
configuration done in eclipse
scr2.jpg
[Thumbnail for scr2.jpg]
Error msg getting on console
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a buildfile?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any other configuration required in my overall machine to run ANT


Set ANT_HOME to where Ant was installed. Also add %ANT_HOME%\bin to the PATH.

By the way, I strongly recommend that you not put Ant into Program Files - paths with spaces in them tend to confuse some Java libraries. I have mine at c:\apps\java\apache-ant-1.8.0RC1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic