-d directory Specifies the destination directory where javadoc saves the generated HTML files. (The "d" means "destination.") Omitting this option causes the files to be saved to the current directory. The value directory can be absolute or relative to the current working directory. For example, the following generates the documentation for the com.mypackage package and saves the results in the C:\user\doc\ directory: C:> javadoc -d \user\doc com.mypackage
Specifies the destination directory where javadoc saves the generated HTML files. (The "d" means "destination.") Omitting this option causes the files to be saved to the current directory. The value directory can be absolute or relative to the current working directory. For example, the following generates the documentation for the com.mypackage package and saves the results in the C:\user\doc\ directory:
C:> javadoc -d \user\doc com.mypackage