两种解决方案:
1:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> 改变为 warning
2:[Project] -> Properties -> Java Build Path -> Libraries -> Remove JRE System Library
Add Library -> JRE System Library -> Click OK