隨筆-10  評(píng)論-3  文章-0  trackbacks-0
              不知不覺又停了N天學(xué)習(xí),看來堅(jiān)持對(duì)偶來說真是難于登天啊。。。

          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 閱讀(161) 評(píng)論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 永寿县| 大兴区| 六盘水市| 通道| 乾安县| 专栏| 西宁市| 扎赉特旗| 阜南县| 沾益县| 任丘市| 高密市| 沁源县| 沾化县| 麻阳| 昌吉市| 丽水市| 济南市| 黄梅县| 随州市| 玉山县| 洪江市| 昌乐县| 绥棱县| 出国| 博乐市| 南宁市| 峡江县| 轮台县| 长丰县| 沙湾县| 金门县| 板桥市| 丹棱县| 金湖县| 咸宁市| 社会| 江津市| 河西区| 遂川县| 汤阴县|