Configure source and Doc associations for jar packages in eclipse

Source: Internet
Author: User

When using eclipse for development, especially when a third-party jar package is added, You can conveniently view the source code and API instructions of the jar package, I believe this will be of great help to our coding.

I did not do this until today. To save trouble, I have always used a Jad decompilation plug-in. However, the decompilation code of this tool cannot see annotations and the format is messy. Today's sudden rise decided to associate the source code and instructions of the jar package

The procedure is as follows:

1. Press Ctrl + the left mouse button and click the class to view the source code (as shown in the interface). Click attach source to select the jar package source file or zip package.

2. Right-click the project and choose properties. The following window appears (check the red mark) to add the source code and API document files.

The operation methods of myeclipse and eclipse or different versions may be different. If the above method does not work, please refer to the following URL:

Http://blog.sina.com.cn/s/blog_59e0c16f0100yat2.html

Http://www.blogjava.net/coderdream/archive/2008/05/29/203839.html

Http://www.2cto.com/kf/201302/189144.html

Add a little bit of knowledge:

View the source code of a class or method in eclipse -- Ctrl + left mouse button -- F3

View the API documentation for classes or methods in eclipse -- Shift + F2

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.