转自:http://jingyan.baidu.com/article/f25ef2546eace4482c1b82a9.html
在MyEclipse中的配置方式为:右击项目->configuration buildPath->选择jre8->remove->add library->JRE SystemLibrary->jre6。
clean此project,发现问题解决!