| Author |
Error building a Project using Ant
|
Orby Sullivan
Greenhorn
Joined: Oct 25, 2010
Posts: 2
|
|
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:
http://www.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.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24061
|
|
|
Here's a thread about this same problem, maybe this will help.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Orby Sullivan
Greenhorn
Joined: Oct 25, 2010
Posts: 2
|
|
|
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.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
And welcome to Javaranch Orby!
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24061
|
|
|
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.
|
 |
 |
|
|
subject: Error building a Project using Ant
|
|
|