My lib dir was on the same level as the dir which contained the ant script C:\0402\lib C:\0402\DiffReport_Scripts\ant-script.xml
I included the lib inside the scripts dir and got rid of that error but now I have a new one coming :( java.lang.InstantiationException: org.apache.tools.ant.Main at java.lang.Class.newInstance0(Class.java:293) at java.lang.Class.newInstance(Class.java:261) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) -----Original Message----- From: Charles Daniels [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:35 AM To: 'Ant Users List' Subject: RE: taskdef You also need to include in your <classpath> any jars that PRTagDiff depends upon. Since your class is a Task (I assume), I believe that means you need to include the ant jar file at a minimum since you are specifying your own classpath to taskdef. So it's probably not your own class that taskdef can't find, but some dependency that it cannot find (perhaps the ant Task class). > -----Original Message----- > From: Radha Sangal [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 8:25 AM > To: Ant Users List > Subject: RE: taskdef > > yes > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 10:23 AM > To: [EMAIL PROTECTED] > Subject: AW: taskdef > > Is there a file named > C:\0402\lib\com\util\infrastructure\ant\tasks\PRTagDiff.class ? > > > -----Ursprüngliche Nachricht----- > > Von: Radha Sangal [mailto:[EMAIL PROTECTED] > > Gesendet am: Dienstag, 30. November 2004 16:19 > > An: Ant Users List > > Betreff: RE: taskdef > > > > Thanks, but it did not work , I did the following for the > > class in lib directory... > > > > <taskdef name="prtagdiff" > > classname="com.util.infrastructure.ant.tasks.PRTagDiff"> > > <classpath> > > <fileset dir="C:\0402\lib\"/> > > </classpath> > > > > </taskdef> > > > > I get the error: > > taskdef class com.util.infrastructure.ant.tasks.PRTagDiff > > cannot be found > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, November 30, 2004 10:07 AM > > To: [EMAIL PROTECTED] > > Subject: AW: taskdef > > > > Should be a ClassDefNotFoundException (or so). > > That´s why Ant uses another classpath for itself than for running a > > program. So you have to provide the info to Ant where the lib is: > > > > <taskdef ...> > > <classpath><fileset dir="..."/> </> > > </> > > > > > > Jan > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Radha Sangal [mailto:[EMAIL PROTECTED] > > > Gesendet am: Dienstag, 30. November 2004 16:03 > > > An: Ant Users List > > > Betreff: taskdef > > > > > > Hi, > > > > > > I am a new bee in Ant. I am using taskdef as follows > > > <taskdef name="prtagdiff" > > > classname="com.util.infrastructure.ant.tasks.PRTagDiff"/> > > > > > > I have a lib dir with the same dir structure but still when I > > > build it, > > > the class is not visible , is there any classpath/path > > > setting for this > > > task ? > > > > > > Thanks in advance > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]