Dedian  
          -- 關注搜索引擎的開發
          日歷
          <2006年5月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910
          統計
          • 隨筆 - 82
          • 文章 - 2
          • 評論 - 228
          • 引用 - 0

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66091
          • 排名 - 813

          最新評論

          閱讀排行榜

          評論排行榜

           
          1. put every class in certain packages, including those test classes, not like to use Default package
          2. generate .Jar file including thoes packages.
          3. write script files (*.sh) to run certain test java classes in .Jar in same folder as my .Jar file and set CLASSPATH in my script files
          ex:
          export CLASSPATH=$CLASSPATH:com.mycompany.util-1.0.0.jar
          java com.mycompany.util.TestClass
          4. then run the script file...

          or, we can use command line like this: java -classpath *.jar ..TestClass

          Note: be sure to use complete path for testing classes, otherwise famours NoClassDefFound error will be thrown out.
          posted on 2006-05-02 05:15 Dedian 閱讀(252) 評論(0)  編輯  收藏

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


          網站導航:
           
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 西昌市| 手机| 尚志市| 额敏县| 安吉县| 绵阳市| 天峨县| 中宁县| 重庆市| 湖北省| 丘北县| 都安| 广宗县| 定州市| 尉犁县| 沁水县| 湾仔区| 玉溪市| 商洛市| 恩施市| 辽源市| 托克逊县| 稷山县| 大新县| 海盐县| 崇信县| 灵台县| 扬中市| 镇坪县| 安庆市| 略阳县| 治县。| 施甸县| 德安县| 永川市| 武功县| 万全县| 乐清市| 日照市| 宣汉县| 鄂温|