隨筆-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 閱讀(162) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 云和县| 修文县| 安阳市| 浪卡子县| 太和县| 盐池县| 开化县| 大方县| 沙田区| 金门县| 珠海市| 宣化县| 临朐县| 分宜县| 牡丹江市| 砀山县| 台州市| 宁武县| 班玛县| 斗六市| 盐源县| 富裕县| 明星| 滨州市| 双江| 正安县| 时尚| 黄梅县| 扶风县| 无锡市| 郸城县| 扎鲁特旗| 绿春县| 阿克苏市| 肇源县| 宣恩县| 江油市| 沾益县| 尼勒克县| 墨江| 长海县|