You can also specify the path relative to the current directory. However, you can specify the full path to the class file and use wildcard characters, for example /home/src/java/awt/Graphics*.java. By default, the javadoc command looks for the specified classes in the current directory. Names of Java source files that you want to document, separated by spaces, for example, Class.java Object.java Button.java. Use the -sourcepath option to specify the list of directories where to look for packages.
If you want to also document the subpackages, then use the -subpackages option to specify them.īy default, the javadoc command looks for the specified packages in the current directory and subdirectories. Names of packages that you want to document, separated by spaces, for example java.lang java.awt.