Go to JDK source code for eclipse debugging

Source: Internet
Author: User

For those who want to know the JDK source code, it is a common method to debug the JDK source code.

If the JDK Source Code cannot be accessed during debugging, and most of the errors are line unavailable, you need to set them.

[Window]-[preference]-[Java]-[installed jres]

Here we can see the Java environment that eclipse can use. By default, JRE (Java Runtime Environment) is used, which does not support debugging and must be replaced with JDK (Java Development Kit ).


[Add]-[next]-[add JRE]

In directory, select the JDK directory installed on the machine, instead of the JRE directory. The jarfiles of JDK are all selected as the source. If not, manually set them.


Then, select JDK.



Then, use the JDK just added in the [Build path] of the project to remove the default JRE reference.

End.





 

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.