Saturday 13 December 2014

How to attach in Eclipse the source code of Java language

If you need to browse the original code of the Java language, you need to attached its sources to the installed JRE preference page, as by default it is not attached when you specify your working JRE.

In Eclipse, select Windows -> Preferences -> Java -> Installed JREs , expands rt.jar, select “Source attachment” and find the src.zip from your disk drive.

That should be right under the JDK folder , for example:  C:\Program Files (x86)\jdk7

No comments:

Post a Comment