隨筆-10  評論-3  文章-0  trackbacks-0
              不知不覺又停了N天學習,看來堅持對偶來說真是難于登天啊。。。

          The javac compiler always looks for files in the current directory, but the java interpreter only looks into the current directory if the "." directory is on the class path. If you have no class path set, this is not a problem—the default class path consists of the "." directory. But if you have set the class path and forgot to include the "." directory, then your programs will compile without error, but they won't run.

          Features tagged as public can be used by any class. Private features can be used only by the class that defines them. If you don't specify either public or private, then the feature (that is, the class, method, or variable) can be accessed by all methods in the same package.

          Comment Extraction

          Here, docDirectory is the name of the directory where you want the HTML files to go. Follow these steps:

          1.
          Change to the directory that contains the source files you want to document. If you have nested packages to document, such as com.horstmann.corejava, you must be working in the directory that contains the subdirectory com. (This is the directory that contains the overview.html file if you supplied one.)

          2.
          Run the command


          javadoc -d docDirectory nameOfPackage

          for a single package. Or run


          javadoc -d docDirectory nameOfPackage1 nameOfPackage2...

          to document multiple packages. If your files are in the default package, then instead run


          javadoc -d docDirectory *.java





          posted on 2010-12-10 12:00 li40204 閱讀(165) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 湖州市| 买车| 鄂伦春自治旗| 赤峰市| 黑河市| 秦安县| 上饶县| 富锦市| 北海市| 通山县| 五寨县| 佳木斯市| 武宣县| 贡觉县| 阿合奇县| 长乐市| 庐江县| 岢岚县| 乌拉特前旗| 长春市| 司法| 新乐市| 拉萨市| 日照市| 句容市| 三都| 丹寨县| 盱眙县| 大厂| 浦北县| 绥中县| 葵青区| 漳平市| 新巴尔虎左旗| 宝鸡市| 肥东县| 曲松县| 乌鲁木齐县| 胶州市| 东明县| 旅游|