简体   繁体   中英

How to open Java Library System files in eclipse?

I'm getting excited at the moment to open Java library files that what contains in it, i mean which type of coding oracle nowadays using, I know that to make an API is easy step, but want to know how to open these library files, as simply i do click, this shows an error:

please see this in pic

Help Would be appreciated!. thanks

You can attach source code of Java in your IDE. In Eclipse go to Windows -> Preferences -> Java -> Installed JREs.

Then select jre6/jre7(whatever is there in your system) and click Edit. Then You can see "Source Attachment" on right hand side, click on that.

Then you can attach src.zip file that is provided by Oracle in your installation directory of java(Ex : C:\\Program Files (x86)\\Java\\jdk1.7.0_60\\src.zip).

After that click Ok and there you go. You can see any Java Library Class Files like String.class or Thread.class etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM