• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error with ANT bin directory

 
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm trying to install ANT, have downloaded src zip file 1.8.2.

I'm facing problem with the below instructions :

To run Ant, you can use the %ANT_HOME% variable like so to test the installation:


> %ANT_HOME%\bin\ant -version
For more flexibility, you can add the Ant %ANT_HOME%\bin directory to your %PATH% environment variable using the system application, just as you added the %ANT_HOME% variable. This means you can call the ant command from any directory like so:


> ant -version
If these commands do not display the version number of Ant you installed, check the value of %ANT_HOME% and that the %ANT_HOME%\bin\ant file is accessible.



I'm not able to access the ANT file in BIN folder.

ANT_HOME = C:\apache-ant-1.8.2 & PATH contains %ANT_HOME%\bin;

Please advise.


 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to set the bin path also,the way one has to set for java.
In the path environment variable add ant bin path.
Hope it works for you.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly where did you install Ant? Also, post the command you are trying and the results/errors that are coming back.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter,
I installed ANT Source files from the Apache homepage.
After unzipping into C:\Apache-ant-1.8.2, I run >BUILD in the command prompt (WIN7 OS).
This creates BUILD folder under Apache-ant-1.8.2 i.e. Apache-ant-1.8.2\BUILD, but there is not BIN folder created.

I do get BUILD FAILED at the end of the messages after running BUILD command.

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download the binary instead of the source, install that, and use it instead.

BTW, do you have junit installed? Without it the build will not complete.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter,

It has been working fine after I downloaded Binary installation.

Thanks for your advice.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic