在eclipse中添加jdk源码

window->Preferences->java->Installed JREs 点击你的jre然后点右边的Edit

找到以rt.jar结尾的jar,点击右边的Source Attachment

点击右边的External File选择你的src所在的路径,然后点击ok就可以了

posted @ 2019-11-28 09:02  勤俭的搬运工  阅读(227)  评论(0编辑  收藏  举报