1.在eclipse菜单栏选中Window–>Preferences
2.选中Installed JREs下面的jre1.8…,然后选中Edit…
3.进入之后:选中rt.jar,在单击Source Attachment
4.按照下面的图片选择就可以了,然后就OK了
1.在eclipse菜单栏选中Window–>Preferences
2.选中Installed JREs下面的jre1.8…,然后选中Edit…
3.进入之后:选中rt.jar,在单击Source Attachment
4.按照下面的图片选择就可以了,然后就OK了