I thought I had the same problem as everybody else (namely a missing optional.jar in my lib directory) but after inserting that file I still can't make junit work
ANT_HOME = c:\jakarta-ant-1.3
I used ant -debug and
java.class.path contains : C:\jakarta-ant-1.3\lib\optional.jar (that I downloaded from the web) and also c:\junit3.5\junit.jar
Also I used the target check_for_optional_packages to see if junit was present :
Finding class junit.framework.TestCase
Class junit.framework.TestCase loaded from system loader
Setting project property: junit.present -> true
But when I want to use the tag junit I still have :
[null] Could not create task of type: junit Common solutions are adding th
task to defaults.properties and executing bin/bootstrap
Could not create task of type: junit. Common solut
ons are to use taskdef to declare your task, or, if this is an optional task, t
put the optional.jar in the lib directory of your ant installation (ANT_HOME).
the defaults.properties file has junit in its optional tasks.
I also tried the source distribution without any success
I would appreciate any idea.
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.