Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

unable to run ant after unzipping binary distrbtn

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Brothers and sisters,I am new to ant.

i have unzipped the ant into D:\Room_Mates\riyaz\Installd\ant\apache-ant-1.6.5.

set the ANT_HOME = D:\Room_Mates\riyaz\Installd\ant;
set the JAVA_HOME = C:\Program Files\Java\jdk1.5.0_09;
set the path = %JAVA_HOME%\bin;%HSQLDB_HOME%\bin;%ANT_HOME%\bin;
%ANT_HOME%\apache-ant-1.6.5\lib\ant-launcher;

when i run 'ant' command in the cmd prompt under any directory i see the error as - 'ant' nor recogonized as internal or external command.Kindly provide me the sollution.
[ October 10, 2006: Message edited by: riyaz udeen ]
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You missed "apache-ant-1.6.5" in ANT_HOME. Also remove the semi-colon from the end of ant home and java home

where you installed it =
D:\Room_Mates\riyaz\Installd\ant\apache-ant-1.6.5.

you set the ANT_HOME =
D:\Room_Mates\riyaz\Installd\ant;
[ October 10, 2006: Message edited by: Carol Enderlin ]
 
riyaz udeen
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
fine thanks, i recogonized it after posting. thank you.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi..i too have the same problem..unable to run Ant after unzipping the files
my environment variables are
ANT_HOME = C:\Documents and Settings\srini\Desktop\Vandana\apache-ant-1.6.0
Classpath = %ANT_HOME%\lib\ant-launcher;%ANT_HOME%\bin
javahome is set correctly..to javahome
i am on windows xp...in the apache site..it was written that if we had a problem running ant in xp..then try to download a latest nightfortly build ...its written like this...i didnt understand..
pls help me out ....
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
vandu,

Next time start your own post.

ant installation instructions:

set path,

Having problems?
prefereably UNset classpath.
[ October 14, 2006: Message edited by: Carol Enderlin ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic