Eclipse如何设置允许查看底层代码

1.Windows-Preference

2.Java-Installed JREs 中选中JRE点edit

 3.找到路径结尾为:lib t.jar左侧箭头展开

 4.选择Source Attachment:(none)为其添加JDK目录,要添加的是src.zip

 

 5.Finish后Apply and close结束操作

6.查看源码按F3

原文地址:https://www.cnblogs.com/yikecaidechengzhangshi/p/13162299.html