在eclipse中添加jdk源码
window->Preferences->java->Installed JREs 点击你的jre然后点右边的Edit

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

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

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

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

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