右键单击项目-->properties-->Java Bulid Path-->JRE System Library-->Access rules-->Edit... 选择Add...-->Resolution-->Accessible,下面填上** ,最后Apply 等待刷新全部完成!