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

          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  回復  更多評論
            

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


          網站導航:
           
          主站蜘蛛池模板: 盈江县| 桐乡市| 涡阳县| 普宁市| 永泰县| 定安县| 尼勒克县| 桐乡市| 原阳县| 沁水县| 桃江县| 浏阳市| 云安县| 台前县| 五河县| 上思县| 广德县| 巴彦县| 定边县| 广东省| 辽源市| 浪卡子县| 曲水县| 闽清县| 都兰县| 鹰潭市| 榕江县| 九台市| 咸丰县| 柳河县| 曲阜市| 尚义县| 南靖县| 南江县| 牙克石市| 成武县| 安顺市| 兰坪| 晋中市| 黑山县| 秦皇岛市|