javadoc doesn't even start to process my files
Hi all, I'm very new to Java!
I'm trying to generate docs with javadoc for my project: here is my command line
javadoc -sourcepath D:\GianluigiZanettini\GianluigiZanettiniBersaglio -d D:\GianluigiZanettini\GianluigiZanettiniBersaglio\docs -author
When I enter, nothing happend: javadoc seems to be running, but no error and no docs is outputted: I only see a blinking cursor!
Note that Java is installed and I can compile+run my program without any problem.
Any help would be appreciated, thanks!
Welcome to Java!
Javadoc requires that you pass in at least one package name (e.g. java.lang) or source file name (MyClass.java or *.java) that you want to document. So you need to decide if you want to document an entire package or individual source files.
Here's some examples:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#examples
Javadoc uses -sourcepath to find source files to docoument when you pass in package names. When you pass in only source filenames, the -sourcepath option does not help javadoc find those source files.
-Doug
Hi, thankyou for your time! Just a couple of minutes before your answer I work it out.
Here is the command line I used, maybe it would come useful to other people in future ;)
"C:\Program Files\Java\jdk1.5.0_06\bin\javadoc.exe" -sourcepath "D:\GianluigiZanettini\Bersaglio" -d "D:\GianluigiZanettini\Bersaglio\docs" -use -private -footer "<a href='http://www.megalab.it'>(C) Gianluigi Zanettini 2006</a>" *.java