用Eclipse编程时,查看源代码,显示Source not found问题的解决方法。
Eclipse-->"Windows"-->"perferences"
选择JAVA-->"Installed JREs"
在右侧选择"Name"下的"jre1.8.0XXXX',点击右侧"Edit"
在弹出窗口中选择尾缀为"\rt.jar"展开,"Source attachment"双击打开,点选"External location"选择Path为/Java/jdk1.8.0/src.zip
确定即可成功