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

 

Reply via email to