其實生成JAVADOC很簡單,在DOS下用命令而已,生成JAVADOC的目的有2個:
?1:生成DOC
2:檢驗一下你寫的代碼時候規范
步驟:
wsad-->window->preference->java->javadoc-->javadoc command-->select the javadoc.exe
java perspective 下面
wsad-->project-->Generate Javadoc-->select package
? next-->next-->input the argument in the javaoptions
ok!你就可以看到生成的文檔了,要是CONSOLE有紅色的出現,證明你寫的程序不規范了,需要修改以下,調整以下,具體參數可以參考JAVADOC命令的參數行:
如下
javadoc: No packages or classes specified.
usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
-overview
-public?????????????????? Show only public classes and members
-protected??????????????? Show protected/public classes and members (default)
-package????????????????? Show package/protected/public classes and members
-private????????????????? Show all classes and members
-help???????????????????? Display command line options
-doclet
-docletpath
-1.1????????????????????? Generate output using JDK 1.1 emulating doclet
-sourcepath
-classpath
-bootclasspath
????????????????????????? by the bootstrap class loader
-extdirs
-verbose????????????????? Output messages about what Javadoc is doing
-locale
-encoding
-J
Provided by Standard doclet:
-d
-use????????????????????? Create class and package usage pages
-version????????????????? Include @version paragraphs
-author?????????????????? Include @author paragraphs
-splitindex?????????????? Split index into one file per letter
-windowtitle
-doctitle
-header
-footer
-bottom
-link
-linkoffline
-group
-nodeprecated???????????? Do not include @deprecated information
-nosince????????????????? Do not include @since information
-nodeprecatedlist???????? Do not generate deprecated list
-notree?????????????????? Do not generate class hierarchy
-noindex????????????????? Do not generate index
-nohelp?????????????????? Do not generate help link
-nonavbar???????????????? Do not generate navigation bar
-serialwarn?????????????? Generate warning about @serial tag
-charset
ntation.
-helpfile
-stylesheetfile
-docencoding