ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Classpath Issue
Date Mon, 27 Dec 2004 15:18:11 GMT
Shane,

it looks like you are using simply a class of commons-collection.
Put commons-collection.jar in $ANT_HOME/lib (the simplest solution),
or change your build files to put commons-collection.jar where you need 
it (maybe in the classpath of some custom task ???)
or you can also start ant like this

ant -lib [path of commons-collection.jar] (this works under ant 1.6).

Cheers,

Antoine

Shane Furlong wrote:
 >
 >
 >All,
 >I recognize that this may be an elementary question but I'm stuck with 
what
 >I know is a Classpath problem and I can't figure out how to fix it. I'm
 >trying to learn ant and I have some tutorials but they won't build. The
 >error says:
 >
 >BUILD FAILED
 >java.lang.NoClassDefFoundError: org/apache/commons/collections/Predicate
 >        at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
 >        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 >        at org.apache.tools.ant.Main.runBuild(Main.java:673)
 >        at org.apache.tools.ant.Main.startAnt(Main.java:188)
 >        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 >        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 >Caused by: java.lang.NoClassDefFoundError:
 >
 >org/apache/commons/collections/Predicate
 >        at java.lang.Class.getDeclaredConstructors0(Native Method)
 >        at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
 >        at java.lang.Class.getConstructor0(Class.java:1930)
 >        at java.lang.Class.getConstructor(Class.java:1027)
 >        at 
org.apache.tools.ant.IntrospectionHelper.<init>(IntrospectionHelper.java:346)
 >        at 
org.apache.tools.ant.IntrospectionHelper.getHelper(IntrospectionHelper.java:437)
 >        at 
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:318)
 >        at 
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:182)
 >        at 
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
 >        at org.apache.tools.ant.Task.perform(Task.java:363)
 >        at org.apache.tools.ant.Target.execute(Target.java:341)
 >        at org.apache.tools.ant.Target.performTasks(Target.java:369)
 >        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 >
 >So what in there is the missing element and what do I need to get in the
 >Classpath? Many thanks.
 >
 >Shane Furlong
 >



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message