Documenting Classes with JavaDoc

javadoc -d \home\html
											-sourcepath \home\src
											-subpackages java.net

JavaDoc is a tool for generating API documentation in HTML format from comments placed in Java source code files. The JavaDoc tool is a standard part of the JDK installation. In this phrase, we show one sample usage of the JavaDoc tool. JavaDoc has many command-line options and flags that can be used to document classes and packages. For a full description of the options available when using JavaDoc, refer to the Sun documentation at: http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/index.html.

The javadoc command used in this phrase will generate JavaDoc documentation for all classes contained in the java.net package and all of its subpackages. ...

Get Java™ Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.