The source attachment does not contain the source for the file HashMap.class

问题如图:

 

第一步:Windows>Preferences>Java>Installed JREs

 

 

 

 

 

 第二步:点击上图的Add>Standard VM>Directory 选择自己的JDK安装目录,点击apply并finish

 

第三步:项目>Build Path>Libraries>Edit 选择自己刚添加的Standard VM(JDK)

 

 

 

 

 

 

 效果图

 

posted @ 2020-03-05 01:31  forget_me  阅读(591)  评论(0编辑  收藏  举报