Ant + JUnit: NoClassDefFoundError

http://stackoverflow.com/questions/1171264/ant-junit-noclassdeffounderror



0
down vote
In eclipse, this happens when you add the junit jar using the Properties->Libaries->Add External JARs...

Rather than using Properties->Libaries->Add Library... which allows you to select Junit3 or Junit4 and automatically adds the hamcrest library to the path.

你可能感兴趣的:(Ant + JUnit: NoClassDefFoundError)