Win a copy of Head First Android this week in the Android 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
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Error building a Project using Ant

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm new to Java and trying to do the following tutorial on Spring:

http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html

I'm getting the following error when i try build a Project using Ant:

C:\Users\Orby\workspace\Springapp>Ant
Buildfile: build.xml

BUILD FAILED
C:\Users\Orby\workspace\Springapp\build.xml:85: taskdef class org.apache.catalin
a.ant.InstallTask cannot be found

Total time: 0 seconds

My Ant build.properties file looks like:



and i found another URL referring to the same error:

https://coderanch.com/t/108299/tools/Error-while-running-ant-InstallTask

but i'm not sure what i need to do with the classpath in order to resolve this issue?

Any help on this would be appreciated.

Thanks,

O.
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a thread about this same problem, maybe this will help.
 
Orby Sullivan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your response! I had read that article earlier and changed the slashes in my build.properties file but it hasn't resolved my error.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to Javaranch Orby!
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a file "bin/catalina-tasks.xml" in your Tomcat install; read the comments there and import the file. Otherwise the tasks themselves are in server/lib/catalina-ant.jar, so you need to add that to your classpath, and possibly other jars as well.
 
You showed up just in time for the waffles! And this 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