1.点 “window”-> "Preferences" -> "Java" -> "Installed JRES" 2.点击edit按钮 3.点击source Attachment按钮,找到Jdk目录下的src.zip目录,点击OK