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: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 隆回县| 萨迦县| 山东| 双城市| 竹北市| 兴业县| 成武县| 曲阜市| 尼勒克县| 庆城县| 甘谷县| 汉源县| 孙吴县| 铜陵市| 门头沟区| 文昌市| 玉田县| 六枝特区| 绥江县| 古丈县| 浦东新区| 饶河县| 乌鲁木齐县| 河曲县| 板桥市| 灵石县| 科技| 鄱阳县| 黄陵县| 阿拉善盟| 宁化县| 定西市| 读书| 旺苍县| 阳信县| 通许县| 海兴县| 怀化市| 铁岭县| 公安县| 达州市|