成功捷徑,貴在堅持
          人為善,福雖未至禍已遠離; 人為惡,禍雖未至福已遠離

          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 選寶網an9 閱讀(2882) 評論(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
          非常感謝  回復  更多評論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2008-12-25 11:16 | rong
          非常感謝  回復  更多評論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2009-04-20 23:36 | Leasen
          thx million ~~~~~
            回復  更多評論
            
          # re: Ant - junit, build failed= Could not create task or type of type junit
          2009-08-19 21:34 | 3ks
          use bcel.jar  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 敖汉旗| 丽江市| 江城| 龙口市| 达州市| 突泉县| 宜丰县| 融水| 岳西县| 新和县| 古田县| 泸州市| 临夏县| 包头市| 岢岚县| 全椒县| 扎赉特旗| 潍坊市| 宁津县| 梁山县| 长垣县| 都昌县| 盘锦市| 措美县| 紫阳县| 资溪县| 临汾市| 民丰县| 诸城市| 麟游县| 盐城市| 东莞市| 铁岭县| 蒙阴县| 深州市| 萝北县| 桐柏县| 萨嘎县| 深泽县| 辛集市| 榆树市|