右键点击你的项目---> build path---->configer*** ---> 在libraries标签里把红色的删掉 然后在右侧点击addlibrary--->选择JRE -->next 换一个jre试试
我记得当时好像是没网,估计是没下下来需要的jar