javadoc.exe
用法:javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
-overview <file> 讀取 HTML 格式的概述文檔
-public 僅顯示 public 類和成員
-protected 顯示 protected/public 類和成員(缺省)
-package 顯示 package/protected/public 類和成員
-private 顯示所有類和成員
-help 顯示命令行選項
-doclet <class> 通過候選 doclet 生成輸出
-docletpath <path> 指定 doclet 類文件的查找位置
-sourcepath <pathlist> 指定源文件的查找位置
-classpath <pathlist> 指定用戶類文件的查找位置
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> 覆蓋自舉類加載器所加載的類文件的位置
-source <release> Provide source compatibility with specified release
-extdirs <dirlist> 覆蓋已安裝的擴展的位置
-verbose 有關 Javadoc 所做工作的輸出信息
-locale <name> 所用的 Locale,例如 en_US 或 en_US_WIN
-encoding <name> 源文件編碼名稱
-J<flag> 將 <flag> 直接傳給運行時系統
由標準 doclet 提供:
-d <directory> 輸出文件的目標目錄
-use 創建類和包的用法頁
-version 包含 @version 段
-author 包含 @author 段
-docfilessubdirs Recursively copy doc-file subdirectories
-splitindex 將索引分為每個字母對應一個文件
-windowtitle <text> 文檔的瀏覽器窗口標題
-doctitle <html-code> 包含包索引頁(首頁)的標題
-header <html-code> 包含每一頁的頁眉文本
-footer <html-code> 包含每一頁的頁腳文本
-bottom <html-code> 包含每一頁的頁底文本
-link <url> Create links to javadoc output at <url>
-linkoffline <url> <url2> Link to docs at <url> using package list at <url2>
-excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with given name.
-group <name> <p1>:<p2>.. Group specified packages together in overview page
-nocomment Supress description and tags, generate only declarations.
-nodeprecated 不包含 @deprecated 信息
-noqualifier <name1>:<name2>:... Exclude the list of qualifiers from the output.
-nosince Do not include @since information
-nodeprecatedlist 不生成不鼓勵使用的列表
-notree 不生成類層次
-noindex 不生成索引
-nohelp 不生成幫助鏈接
-nonavbar 不生成導航欄
-quiet Do not display status messages to screen
-serialwarn Generate warning about @serial tag
-tag <name>:<locations>:<header> Specify single argument custom tags
-taglet The fully qualified name of Taglet to register
-tagletpath The path to Taglets
-charset <charset> Charset for cross-platform viewing of generated documentation.
-helpfile <file> 包含幫助鏈接功能鏈接到目標的文件
-linksource Generate source in HTML
-stylesheetfile <path> 改變所生成文檔的樣式的文件
-docencoding <name> 輸出編碼名稱
javah.exe
用法:javah [options] <classes>
其中 [options] 包括:
-help 打印該幫助信息
-classpath <path> 類的加載路徑
-bootclasspath <path> 自舉類的加載路徑
-d <dir> 輸出目錄
-o <file> 輸出文件(僅能使用 -d 或 -o 之一)
-jni 生成 JNI 風格的頭文件(缺省)
-old 生成 JDK1.0 風格的頭文件
-stubs 生成 stubs 文件
-version 打印版本信息
-verbose 輸出有關本命令所做工作的信息
-force 始終寫輸出文件
指定 <classes> 時必須使用全名(例如 java.lang.Object)。
HtmlConverter.exe
用法:HtmlConverter [-option1 value1 [-option2 value2 [...]]] [-simulate] [filespecs]
其中,選項包括:
-source: 獲取源文件的路徑。 缺省值: <userdir>
-dest: 寫入已轉換文件的路徑。 缺省值: <userdir>
-backup: 寫備份文件的路徑。 缺省值: <dirname>_BAK
-f: 強制覆寫備份文件。
-subdirs: 應處理子目錄中的文件。
-template: 模板文件的路徑。 如果不確定,請使用缺省值。
-log: 寫日志的路徑。 如果沒有提供,則不會寫入任何日志。
-progress: 轉換時顯示進度。 缺省值: true
-simulate: 在沒有進行轉換時顯示特定于轉換的信息。
-latest: 使用最新的 JRE 支持發行版 mimetype。
-gui: 顯示轉換程序的圖形用戶界面。
filespecs: 用空格分開的文件說明列表。 缺省值: "*.html *.htm" (需要引號)
native2ascii
功能說明:
將含有本地編碼字符(既非 Latin1 又非 Unicode 字符)的文件轉換為 Unicode 編碼字符的文件。
語法:
native2ascii [options] [inputfile [outputfile]]
補充說明:
Java 編譯器和其它 Java 工具只能處理含有 Latin-1 和/或 Unicode 編碼(udddd 記號)字符的文件。native2ascii 將含有其它字符編碼的文件轉換成含 Latin-1 和/或 Unicode 編碼字符的文件。若省略 outputfile,則使用標準輸出設備輸出。此外,如果也省略 inputfile,則使用標準輸入設備輸入。
命令選項
-reverse 執行相反的操作:將含 Latin-1 和/或 Unicode 編碼字符的文件轉換成含本地編碼字符的文件。
-encoding[encoding_name] 指定轉換過程使用的編碼名稱。缺省的編碼從系統屬性 file.encoding 中得到。