This should be easy. I am trying to add my listener class MyBuildListener but ant doesn't seem to find it. I tried giving complete paths but still getting same error. This is like some classpath issue ?
I m following this tutorial http://www.onjava.com/pub/a/onjava/2001/02/22/open_source.html?page=3 C:\EclipsePRWorkspace\LogDatabase>ant -debug -listener c:\EclipsePRWorkspace\LogDatabase\bin\MyBuildListener Apache Ant version 1.5.1 compiled on October 2 2002 Buildfile: build.xml BUILD FAILED Unable to instantiate listener c:\EclipsePRWorkspace\LogDatabase\bin\MyBuildListener at org.apache.tools.ant.Main.addBuildListeners(Main.java:653) at org.apache.tools.ant.Main.runBuild(Main.java:558) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: java.lang.ClassNotFoundException: c:\EclipsePRWorkspace\LogDatabase\bin\MyBuildListener at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.tools.ant.Main.addBuildListeners(Main.java:649) ... 3 more --- Nested Exception --- java.lang.ClassNotFoundException: c:\EclipsePRWorkspace\LogDatabase\bin\MyBuildListener at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.tools.ant.Main.addBuildListeners(Main.java:649) at org.apache.tools.ant.Main.runBuild(Main.java:558) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Total time: 0 seconds
