Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Javadoc from a jar file

843810Apr 10 2003 — edited Jun 19 2003
How can I give a single javadoc command so as to generate the documentation for all the classes in a jar file

Comments

843810
Does the jar file contain .class files or .java files?

Javadoc cannot document .java files in jar files.
I'll check into whether it can document .class files in jar files
using an undocumented -Xclasses option in 1.4.2.
I don't believe -subpackages would work, though, so you'd
have to write a script to get all the fully-qualified class names.

-Doug Kramer
javadoc team
843810
The jar file contains class files.
How can i generate the documentation recursively for a folder which contains .class files & subfolders?
843810
FRom www.jdiff.org README:

"JDiff also includes a script to use the classdoc application from
http://classdoc.sourceforge.net or http://www.jensgulden.de, by Jens Gulden, mail@jensgulden.de,
to call a doclet such as jdiff on a .jar file rather than on source."

You can use this to generate Javadoc output directly from jar files.

~Matt
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 17 2003
Added on Apr 10 2003
3 comments
171 views