Attaching to Sun's javadoc

I'm new to creating javadocs, so this is probably an obvious question and I'm just missing it. I noticed that when I create javadocs for my own packages, they show the superclasses methods, fields, etc., but they are static text, and not hyperlinks like Sun's javadoc. Is there any way to get the javadocs I generate for my own packages to link back to Sun's javadocs?

[386 byte] By [titojermaine] at [2007-9-26 22:03:28]
# 1

You can use the -link option to link to a URL that contains other Javadoc documentation.

For instance:

javadoc -link file:\\"C:\Program Files\JavaSoft\j2sdk1.4.0\docs\api" DRE.data_structures

is the command I use to run javadoc on my DRE.data_structures package, linking to locally-defined copy of the Sun Java API. Note that the correct directory is the one in which the "index.html" file is found. If javadoc cannot find a correct API as specified, the output will look the same as it currently looks.

The -link flag works with URLs, so you should be able to point to the APIs at Javasoft if you don't want to link them to a local copy.

jre95001 at 2007-7-4 1:11:59 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...