1、eclipse菜单 - Window - Preferences- Java - Installed JREs
2、eclipse菜单 - Window - Preferences- Java - Installed JREs - execution environments - java se 1.8
3、项目右键 - properties - java build paths - libraries - jre system libraries 选中 - remove - add libraries - 选中 jre system libraries
4、项目邮件 - properties - java complier -