Import source code in eclipse

Source: Internet
Author: User

When we use Eclipse to develop Java projects, sometimes we need to look at the Java source code, but we need to first import the source code in eclipse before we can see

In the absence of import source code, we put the mouse in the need to view the Java source code, the use of shortcut keys (Ctrl + left), can not view the source code.

For example, when we want to see the source of the exist () method, the interface of Figure two appears.

(Figure I)

(Figure II)

Next is the process of importing the source code

1. Click on the Attach Source in Figure II and the interface below appears

2. Then add the path to the source code (Src.zip in the JDK's installation directory)

Click OK to complete

3. Once the add is complete, we can view the source code directly

For example: We try to open the file class source code, the mouse point to file, shortcut keys (Ctrl + left), the source code appears

Import source code in eclipse

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.