Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

accessing source code for JRE System library

843798Feb 28 2008
I am working on project using Java jdk1.5.0_14 but am having trouble accessing its source from within Eclipse 3.3.1.

I used ctags to create a tags file for vi using jdk1.5.0_14/src.
This works well. From within vi I can find the source for methods in Java jdk1.5.0_14
very nicely using the tags commands of vi.

But I am learning Eclipse and want to have the same capability of finding the source
for methods/classes/etc. of Java jdk1.5.0_14 from within Eclipse.

Now I have the JRE System Library (jdk1.5.0_14) loaded into Eclipse and it contains
jar files rt.jar, jsse.jar, jce.jar, charsets.jar, sunjce_provider.jar, localedata.jar, sunpkcs11.jar,
and dnsns.jar. For each of these jar files Eclipse allows me to make a Java Source Attachment
(either a directory, a JAR file, or a zip file). However the source for jdk1.5.0_14 (in subdirectory src)
is structured completely differently from what these jar files suggest (ie. a source directory in src
corresponding to each jar file). For example the subdirectories of src are com, java, javax, launcher, org, and sunw.
src also contains file src.zip.

Is there a way to fix this so that I can look at the jdk1.5.0 source code from within Eclipse?

For example is there a set of source files corresponding to the jar files?

Solutions much appreciated.

Thanks in advance for any help or insight provided.

Ralph Boland
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2008
Added on Feb 28 2008
0 comments
190 views