javadoc -link giving me a javascript error
was not sure how to reference this issue in a title. anyways, i am running a command like this
javadoc -link http://java.sun.com/j2se/1.4/docs/api/ -sourcepath /home/dir/com/hostname/ com.hostname.A com.hostname.B
everything works great. All core API package classes have links and they work. But they give me a javascript error. It appears, from my days of javascript, that sun is not allowing me to load there page within my frame. I am not loading my API via a web server...just locally. The error says access denied. I click okay and everything from that point foward is fine.
the error does specifiy a line number w/i the html..here it is
<SCRIPT>
function asd()
{
parent.document.title="Exception (Java 2 Platform SE v1.4.0)";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
maybe my browser is angry that sun's page is trying to adjust my parent window. could be my end...i dont know
any ideas
[1015 byte] By [
geek_freak] at [2007-9-26 5:47:45]

I have done a few tests
<code>
/**
* <a href="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">TEST</a>
*
* <a href="/home/dir/test.html">TEST2</a>
*/
</code>
my page loaded but suns gave me a javascript error
my page had the same javascript code i posted above and did change the document title.
Your command does not look correct. The -sourcepath option should point to
the *root* directory that holds the packages, namely /home/dir, as follows:
javadoc -link http://java.sun.com/j2se/1.4/docs/api/ -sourcepath /home/dir/
com.hostname.A com.hostname.B
This assumes your source files are in /home/dir/com/hostname/A/*.java
(likewise for B).
I'll reply to the javascript problem separately.
-Doug Kramer
Javadoc team
The purpose of the Javascript is to put the class name ahead of anything
else in the window title, so when the window is minimized, you can see
the class name in the MS Windows toolbar.
What browser version are you using? Do you have frames displayed
in the browser?
When you get "access denied" error, does the browser prevent the page
you are trying to link to from being displayed?
Are you using Javadoc 1.4 Beta 2?
If this appears to be a bug in Javadoc, then please submit this as a
bug at java.sun.com/cgi-bin/bugreport.cgi under Java 2 Standard Edition v1.4,
javadoc subcategory ASAP, with answers to the above questions, so we
can fix it for Beta 3.
-Doug Kramer
Javadoc team
What was the synopsis (one-sentence summary) of your submission?
I still haven't seen any javadoc bug about an "javascript" error show
up inside Sun. If you're not certain of the synopsis, please send me
the bug report directly at javadoc-tool@sun.com and I'll make sure it
gets submitted.
-Doug Kramer
Javadoc team