[Go] diagram Eclipse View original class appears the jar file Rt.jar has no source attachment

Source: Internet
Author: User

Original: http://blog.csdn.net/u011514810/article/details/53196371

-------------------------------------------------------------------------------------------------

As a rookie, it is very important to view Java source code. In eclipse, it is very convenient to view the source code of a class, directly holding down the CTRL + mouse click on the class or method, then this class or method of the source code will appear. Before you do this, you need to import the source Src.zip in eclipse first. This source src.zip do not need to download, as long as you install the JDK, then the JDK installed in the directory will have Src.zip, no decompression, see below How to import the source code into eclipse.

1. Go to the Eclipse interface, click Window--Preferences--Java--Installed JREs

2. Select D:\java\lib\rt.jar, and then select Source Attachment

3. Select External location, click External File to browse to the directory where you installed the JDK, find Src.zip, and click Ok,finish once.

[Go] diagram Eclipse View original class appears the jar file Rt.jar has no source attachment

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.