Ways to view source code using Eclipse

Source: Internet
Author: User

Open Eclipse, build project: Test, import the STRUTS2 related jar package into it. Operate under the Package Explorer tab bar.

Such as:

    1. Here, for example, refer to the source code under Struts2-core-2.3.12.jar in Struts2.

      Under the test project, find the Web App Libraries-Struts2-core-2.3.12.jar, right-click Struts2-core-2.3.12.jar, select "Properties"

      Such as:

    2. In the New Popup dialog box, select Java Source Attachment-External location-External floder ...

      Such as:

    3. At this point, a new dialog box pops up. Locate the source code of the Struts2-core-2.3.12.jar mentioned in step 1 in the hard disk, then click OK, go back to the dialog box and confirm that the information is correct, click "OK"

      At this point, the source code succeeds in establishing a connection with eclipse.

    4. Next, there are a number of ways to look up a class of source code in eclipse, where the small part only introduces a relatively quick approach.

      Press and hold the keyboard "Ctrl", with the mouse touch to one of the classes you call, left-click, the source code is out.

      END
    • This experience applies to beginners.

    • If you do not have Eclipse and source code connected, you can only review the contents of the post-compilation

    • IDEA_WJ Reprint Please specify the author's pen name

Ways to view source code using 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.