在保证环境没错的情况下,在eclipse工具栏找到project--->properties--->java Bulid Path--->Libraries 将JRE System Libraries的包remove掉就可以了。见下图: