转载博客:https://blog.csdn.net/gengjianchun/article/details/78679036
https://blog.csdn.net/jsloveyou/article/details/53908932
项目右键->buildPath configure Build Path->点击选项卡Libraries->选中JRE System Library->
点击edit->选中Alternate JRE->选择jdk->点击finish,点击ok具体原因未知,
有知道的帮我留个言,谢谢