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

问题如图:

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

扫描二维码关注公众号,回复: 9586998 查看本文章

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

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

 

 效果图

猜你喜欢

转载自www.cnblogs.com/feiyang930112/p/12417530.html