Thanks. I have ant.jar in ant\lib. Here is the list of file in ant\lib:
        ant.jar, crimson.jar, jaxp.jar, optional.jar

I print the %LOCALCLASSPATH% before 
"%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%"
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%

here is the output
classpath:
C:\jdk131\lib\tools.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\optional.jar;C:\jak
arta-ant-1.4.1\bin\\..\lib\jaxp.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\crimson
.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\ant.jar;

-----Original Message-----
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 2:53 PM
To: 'Ant Users List'
Subject: RE: junit problem with ant 1.4.1


Having junit.jar in ant\lib should fix it. There are other ways to fix it,
but that should get you going. --DD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: junit problem with ant 1.4.1


I got some problem with junit. I have optional.jar under ant\lib directory.
I am sure optional.jar is in the classpath.

Thanks in advance.

here is the junit task script
    <target name="junittest" depends="setup">
         <junit>
              <test name="TestSlc" />
         </junit>
   </target>

Here is the error message:
junittest:
    [junit] Could not create task of type: junit Common solutions are adding
the
 task to defaults.properties and executing bin/bootstrap

BUILD FAILED

qatest.xml:96: Could not create task of type: junit. Common solutions are to
use taskdef to declare your task, or, if this is an optional task, to put
the optional.jar in the lib directory of your ant installation (ANT_HOME).
        at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)

        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
        at org.apache.tools.ant.Task.perform(Task.java:216)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to