How to Attach JDK source with Eclipse IDE?

SHARE & COMMENT :

This tutorial explains about how to attach JDK source code to your working environment. When you want to look at particulat source code, we can use CTRL+Click on the class name to refer the source code. However, by default developer can not refer JDK’s core Java files. It is referenced as the class files and you will see only the class files and will not see source code. You can link the source code under the JDK installation folder to enable the linking of source code for all the Java core classes.

You can navigate to this path for enable this option : Windows -> Preference -> Java -> Installed JREs -> Select a JRE -> Click Edit -> Select rt.jar -> Click Source Attachment -> Click Finish. It is done.

eclipse-1

eclipse-2

Comments

comments

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Speak Your Mind

*

Close
Please support the site
By clicking any of these buttons you help our site to get better