I have a folder structure with a lot of java files in various folders. I'm attempting to use the javadoc command from the command line to create javadocs for all .java files existing in this folder structure. I'm struggling with the syntax.
Here is an example of the folder structure. Folders are in bold and files are in italic.
Here is my javadoc command that I'm running from the folder containing the b2b folder
Here is the error I'm getting
I know this is something silly, I'm just not thinking clearly today.
Thank you for the response. I don't have the subpackage option. I'm using a 1.4.x JDK. I tried the following command and it didn't work correctly saying that No packages or classes specified.
In addition to defining the sourcepath, you also have to define the packages or java files. So for example if I had an application source code structure that looked like this:
C:\b2b\com\steve\util\<some source files>
C:\b2b\com\steve\app\<some source file>
C:\b2b\com\steve\gui\<some source files>
Then I would do:
javadoc -d "C:\docs" -sourcepath "C:\b2b" -subpackages com
And that should create javadocs for source code in the com package, and all subpackages (recursively), found inside the "C:\b2b" directory.
Brian M Smith
Joined: Aug 13, 2009
Thanks Steve and David. I was able to use the javadoc command. I appreciate the help!