1. Point "window"-> "Preferences"-> "Java"-> "Installed JREs"
2. At this point "installed JREs" Right is the list pane, listing the JRE environment in the system, select your JRE, and then click "Edit ..." on the edge, and a window (edit JRE) appears.
3. Select this entry for the Rt.jar file: "C:\Program Files\java\jre_1.5.0_06\lib\rt.jar"
The "+" number on the left of the point expands it,
4. After the expansion, you can see "source attachment: (None)", click on this item, click on the right button "source attachment ...", select your JDK directory under the "Src.zip" file (this file in the JDK installation directory root directory)
5. All the Way "OK", set to complete
When Setup is complete, hold down the CTRL key and click a JDK method name or class name to see the source code for the method. In addition, press F3 can also be achieved.
PS:rt.jar contains the base class library of the JDK, which is the class file of all the classes you see in Java doc; the Src.zip file is where the base class corresponds to the source file (that is, the *.java format file); We can go online to download the Java Open Source framework for the corresponding source code package, such as Spring-src.zip, and then follow the above set steps set, you can view the corresponding Java framework source.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.