成功捷徑,貴在堅(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 閱讀(2872) 評(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)航:
           
          主站蜘蛛池模板: 洪江市| 象山县| 太仓市| 汶川县| 永兴县| 青冈县| 乌兰察布市| 芦溪县| 庄河市| 全州县| 二手房| 海盐县| 米脂县| 怀安县| 黑龙江省| 旬阳县| 鹿泉市| 沈阳市| 绥芬河市| 娄底市| 衡阳县| 驻马店市| 射洪县| 怀化市| 望江县| 静安区| 静海县| 合江县| 龙岩市| 恭城| 安龙县| 济南市| 上杭县| 会宁县| 北海市| 同心县| 五莲县| 德昌县| 饶阳县| 绥滨县| 武城县|