• 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
Re: Javadoc and Source Code for JRE Classes in Eclipse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...

You can download the source here: jdk-6u23-fcs-bin-b05-jrl-12_nov_2010.jar

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

References: 
 >Javadoc and Source Code for JRE Classes in Eclipse (From: David Avendasora <email@hidden>)
 >Re: Javadoc and Source Code for JRE Classes in Eclipse (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Javadoc and Source Code for JRE Classes in Eclipse
  • Next by Date: Re: I've got the latest Gianduja snapshot for evaluation
  • Previous by thread: Re: Javadoc and Source Code for JRE Classes in Eclipse
  • Next by thread: EOGlobalID
  • Index(es):
    • Date
    • Thread