The javadoc Tool (Documentation Generator)

The javadoc tool creates an HTML file based on the tags that are embedded in the /** */ type of comments within a Java source file. These HTML files are used to store information about the classes and methods that you can easily view with any Web browser.

Here is the format of the javadoc command:

javadoc [options] [ packagenames ] [sourcefiles] [classnames] [@files]

javadoc was actually used by the creators of the SDK to create the Java API Documentation. The javadoc homepage can be found at

Many options can be used by the javadoc command. Tables B.4 and B.5 attempt to describe the most important options. For a complete list, type javadoc on the ...

Get Special Edition Using Java 2 Standard Edition 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.