• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Javadoc and Source Code for JRE Classes in Eclipse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Javadoc and Source Code for JRE Classes in Eclipse


  • Subject: Javadoc and Source Code for JRE Classes in Eclipse
  • From: David Avendasora <email@hidden>
  • Date: Fri, 22 Apr 2011 08:33:45 -0400

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Javadoc and Source Code for JRE Classes in Eclipse
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: Optimal number of WorkerThreads
  • Next by Date: Re: I've got the latest Gianduja snapshot for evaluation
  • Previous by thread: Re: Optimal number of WorkerThreads
  • Next by thread: Re: Javadoc and Source Code for JRE Classes in Eclipse
  • Index(es):
    • Date
    • Thread