external link fetching error

I was trying to link my package to SUN JAVA API using the following command, the error message is as below. Any idea?

Command:

javadoc -d ~/cvs/pipeline/java/src/doc *.java -link

http://java.sun.com/products/jdk/1.2/docs/api

Error message:

javadoc: Error fetching URL: http://java.sun.com/products/jdk/1.2/docs/api/package-list

[378 byte] By [qwang123] at [2007-9-26 23:49:48]
# 1

It appears your shell cannot access the server java.sun.com.

(Perhaps you are behind a firewall.) Try saving this file to your local drive:

http://java.sun.com/products/jdk/1.2/docs/api/package-list

say to ~/package-list

and use -linkoffline instead:

javadoc -d ~/cvs/pipeline/java/src/doc *.java -linkoffline http://java.sun.com/products/jdk/1.2/docs/api ~/package-list

dkramer at 2007-7-4 14:02:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
It appears your shell cannot access the server java.sun.com.(Perhaps it is behind a firewall.) Try
aym_7 at 2007-7-4 14:02:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...