You may need to add junit.jar to your $ANT_HOME/lib directory if it is not there already, or alternatively remove the $ANT_HOME/lib/ant-junit.jar file. For Hibernate3, repeat the steps above, but also copy lib/antlr.jar or remove the $ANT_HOME/lib/ant-antlr.jar file.
These
steps are necessary because Ant ships with plugin stub libraries in its
classpath, so Ant plugins for JUnit or Antlr can't be used without
copying or removing files. If you don't have Ant installed on your
machine or don't want to mess with the default Ant installation then,
on Windows, just run build.bat to use the bundled Ant libraries.
铏界劧浠栬鍙互鐢╞uild.bat鏉ヨ繘琛岋紝浣嗘垜涔熶笉鐭ラ亾浠栦負(fù)浠涔堜細(xì)鎵句笉鍒癹avac錛屽弽姝f垜鎶奱ntlr.jar鎷峰埌ant鐨刲ib涓嬮潰錛屽氨O(jiān)K浜嗐?br>