Re: Javadoc and Source Code for JRE Classes in Eclipse
Re: Javadoc and Source Code for JRE Classes in Eclipse
- Subject: Re: Javadoc and Source Code for JRE Classes in Eclipse
- From: John Huss <email@hidden>
- Date: Fri, 22 Apr 2011 09:35:00 -0500
Cool...
This is a java app that you double click to run and it will install the source to a directory you choose. I put it in /Developer/Documentation/Java/src
Then in eclipse you go to
Preferences -> Installed JREs -> Edit. Select classes.jar and press "Source Attachment" and enter the path as
/Developer/Documentation/Java/src/Java/j2se/src/share/classes
This enables javadoc too. And since it's available offline it's even better.
John
On Fri, Apr 22, 2011 at 8:19 AM, David Avendasora
<email@hidden> wrote:
On Apr 22, 2011, at 8:33 AM, David Avendasora wrote:
> 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...)
Apparently I spoke too soon. That is a developer release of the JDK and it is older than the one that is active by default. After restarting eclipse, mine went back to showing the decompiled source instead of the contents of the src.jar file.
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
_______________________________________________
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