- Download the doccheck.jar here. The links on the official Oracle Homepage don't seem to work.
- DocCheck requires the class com.sun.tools.doccheck.HtmlWriter. This class is no longer included in modern JDKs. So I downloaded the Java 1.2 SDK for Windows, installed it on my Windows machine and took the tools.jar from this installation. Save this JAR in the same directory as doccheck.jar.
- Put the tools.jar into the classpath: export CLASSPATH=tools.jar
- Call the javadoc-command with the doccheck doclet:
javadoc -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath doccheck.jar -sourcepath <PATH_TO_YOUR_CODE> -d <OUTPUT_DIR> -subpackages <YOUR_TOPLEVEL_PACKAGE>