Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » viewing java source code
viewing java source code [message #797868] Tue, 14 February 2012 00:53 Go to next message
Phil Freihofner is currently offline Phil FreihofnerFriend
Messages: 46
Registered: May 2010
Member
I downloaded the Classic Indigo, in hopes of being able to examine the source code for Java to see how various things are accomplished.

"The classic Eclipse download: the Eclipse Platform, Java Development Tools, and Plug-in Development Environment, including source and both user and programmer documentation."

Did I misread this description? Is the "source" being referred to the source for Eclipse rather than Java?

Re: viewing java source code [message #797909 is a reply to message #797868] Tue, 14 February 2012 02:10 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1441
Registered: July 2009
Senior Member
On 02/13/2012 06:53 PM, Phil Freihofner wrote:
> I downloaded the Classic Indigo, in hopes of being able to examine the
> source code for Java to see how various things are accomplished.
>
> "The classic Eclipse download: the Eclipse Platform, Java Development
> Tools, and Plug-in Development Environment, including source and both
> user and programmer documentation."
>
> Did I misread this description? Is the "source" being referred to the
> source for Eclipse rather than Java?
>
>
Yes, it is the Eclipse source. Oracle distributes the Java source with
the Java JDK (not with the JRE). If you install an Oracle JDK, it will
include the source.
Re: viewing java source code [message #798037 is a reply to message #797909] Tue, 14 February 2012 06:42 Go to previous message
Phil Freihofner is currently offline Phil FreihofnerFriend
Messages: 46
Registered: May 2010
Member
Thank you. I was able to download the JDK version and indeed there are source files available.

What puzzles me is that they are organized very differently. Files which are present in rt.jar are not in a source file that matches rt.jar.

Thus when I press <F3> on a class like AudioSystem, I'm brought to the "AudioSystem.class" with a note that I am allowed to click an "Attach Source" button. But the source being requested is for rt as a whole, is it not?

Ah! Attaching the src.zip that is provided, at this juncture indeed exposes the source code for AudioSystem.

Thank you!
Previous Topic:Viewing PNG
Next Topic:BIRT
Goto Forum:
  


Current Time: Sat Jun 19 16:49:12 GMT 2021

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top