Eclipse related settings instructions-associated JDK source code (5)

Seven, JDK source code associated in eclipse

  • Click Window -->Preferences, as follows:
    Insert picture description here
  • After clicking Preferences, click> in front of Java in the pop-up box, and click Installed JREs in Java
    Insert picture description here
  • Click JDK in the pop-up box, click the second Eidt JRE on the right, and a box will pop up on the right:
    Insert picture description here
  • Find …\jre\lib\rt.jar in the JRE system library in the pop-up box, click it, and then click the third item Source Attachment… on the right side, the operation is as follows:
    Insert picture description here
  • Select External location --> External File... in the pop-up box, select the path to the root directory of JDK, find src.zip and click, the operation is as follows:
    Insert picture description here
  • Finally save the settings: Click OK --> Finish --> Apply --> Apply and Close.

Guess you like

Origin blog.csdn.net/Java_lover_zpark/article/details/105037393