的Javadoc編譯
生成HTML文檔,運行的Javadoc隨後源的文件的列表,其中所述文檔是要生成,在命令提示(即的Javadoc [文件])。 Javadoc還提供了其他選項,可以在Javadoc命令之後作爲開關輸入(即Javadoc [options] [files])。 下面是一些基本的Javadoc選項:
-author - generated documentation will include a author section
-classpath [path] - specifies path to search for referenced .class files.
-classpathlist [path];[path];...;[path] - specifies a list locations (separated by ";") to search for referenced .class files.
-d [path] - specifies where generated documentation will be saved.
-private - generated documentation will include private fields and methods (only public and protected ones are included by default).
-sourcepath [path] - specifies path to search for .java files to generate documentation form.
-sourcepathlist [path];[path];...;[path] - specifies a list locations (separated by ";") to search for .java files to generate documentation form.
-version - generated documentation will include a version section
要回答你的問題:
Javadoc [options] [files]
Javadoc java_file_name.java
確保你有這方面的工作一個system variable created for JAVA_HOME。
是的,謝謝,這是環境變量,從XP天開始就沒有弄錯。 – VannyJ