Hey all,

I don't know if this is peculiar  to my setup, but all the Javadoc for Java 
disappeared in Eclipse. So mousing over a call to a standard Java class like 
java.io.File would say that there was no Javadoc available. I looked in 
Preferences -> Java -> Installed JREs -> JVM 1.6.0 (MacOS X Default) -> Edit.

The Javadoc location for all the JRE system libraries was pointed to: 

http://java.sun.com/javase/6/docs/api/

When you click on the "Javadoc Location" button and click on the "Validate..." 
button, you get a message saying that the location is likely correct.

BUT if you open it in a browser, you'll see that there is a redirect happening 
and the final URL is:

http://download.oracle.com/javase/6/docs/api/index.html

If you change the location in eclipse to point to this URL instead of the 
original, Javadoc starts to work again.

So apparently the in-line, pop-up Javadoc functionality of eclipse doesn't 
follow the redirect, but the Preference panel validation does.

I hope this helps others. It was driving me nuts.

Also, while you are there, you can point the Source attachment property to: 

/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/contents/home/src.jar

And when you open the definition, you'll get the actual Java Source Code 
instead of either a no-source available, or decompiled version. Very handy! 
(but will break/be inaccurate when a new version of the JDK is released...)

Dave _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to