• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Ant for Servlets 3b - silly question  RSS feed

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hullo all,

This may be a silly question. I've searched the Cattle Drive for discussions about Ant but not much luck. So here goes:

I get the following message
C:\Java>ant all
'ant' is not recognized as an internal or external command,
operable program or batch file.

Does this mean I need to download and install Ant?

The Assignments are detailed and explicit about what is required so I thought Ant might already be on my system.
 
village idiot
Bartender
Posts: 1214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run the command ant all this is what I get:

C:\java>ant all
Buildfile: build.xml

init:

clean:
[delete] Deleting directory C:\java\build

initdirs:
[mkdir] Created dir: C:\java\build\classes
[mkdir] Created dir: C:\java\build\dist

compile:
[javac] Compiling 63 source files to C:\java\build\classes
[javac] Note: C:\java\src\java\com\javaranch\db\DBFacade.java uses or overr
des a deprecated API.
[javac] Note: Recompile with -deprecation for details.

war:
[war] Building war: C:\java\build\dist\videos.war
[war] Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)

build:

all:

BUILD SUCCESSFUL
Total time: 47 seconds
C:\java>


Did you copy the build.xml file and put it inside your java directory?
[ July 21, 2006: Message edited by: Carol Murphy ]
 
Carol Murphy
village idiot
Bartender
Posts: 1214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, there is a forum devoted to ANT, and two links to ANT related stuff there.
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#ant
http://bobcat.webappcabaret.net/javachina/faq/ant_01.htm

Hope these help!
[ July 21, 2006: Message edited by: Carol Murphy ]
 
Sheriff
Posts: 9087
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Beattie:
Does this mean I need to download and install Ant?


Good point, Mark. I think it would be good to at least have a link to ant.apache.org from the assignment page. I don't know how we overlooked that detail.
 
Mark Beattie
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carol and Marilyn.

I'll download Ant now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!