成功捷徑,貴在堅(jiān)持
          人為善,福雖未至禍已遠(yuǎn)離; 人為惡,禍雖未至福已遠(yuǎn)離

          When running JUnit tasks in ant and you get the following error:

          BUILD FAILED
          path\to\Geoserver\build.xml:259: Could not create task or type of type: junit.
          Ant could not find the task or a class this task relies upon.

          To fix this problem, you need to copy a JUnit.jar file to your eclipse/plugins/org.apache.ant/lib directory
          Next you need to go into Eclipse then click on Window->Preferences->ant->Runtime, then select 'Ant Home Entries (Default). Click on the button 'Add External JARs'. Locate the junit.jar file you copied, select it and hit 'OK'. Hit 'Apply', then 'OK' and try your ant task again. That should fix it.

          posted on 2006-10-26 14:23 選寶網(wǎng)an9 閱讀(2873) 評(píng)論(5)  編輯  收藏 所屬分類: FRAMEWORK

          FeedBack:
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2007-12-12 16:15 | husband
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2008-11-24 15:09 | xxxxxx
          非常感謝  回復(fù)  更多評(píng)論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2008-12-25 11:16 | rong
          非常感謝  回復(fù)  更多評(píng)論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2009-04-20 23:36 | Leasen
          thx million ~~~~~
            回復(fù)  更多評(píng)論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2009-08-19 21:34 | 3ks
          use bcel.jar  回復(fù)  更多評(píng)論
            

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 扶沟县| 琼海市| 衡水市| 彭泽县| 集安市| 铜川市| 汉寿县| 西乌珠穆沁旗| 屏东县| 会同县| 育儿| 凤台县| 英山县| 普洱| 兴隆县| 通河县| 黄山市| 如皋市| 泰宁县| 郑州市| 周口市| 南陵县| 丰县| 岳普湖县| 积石山| 贵定县| 随州市| 阜南县| 桐庐县| 荃湾区| 开江县| 长海县| 宝兴县| 东台市| 石屏县| 瓦房店市| 新化县| 德钦县| 教育| 木兰县| 西畴县|