Myeclipse导包总是报错,jar包路径都没问题

是访问限制报错.

  • 方法一:

全局属性Project>preferences>java>Compiler>Errors/Warnings>把右侧的【Deprecated and restricted API>Forbidden reference的Error】置为【Warning】.

  • 方法二(终极方法:)

 项目属性preferences>java build path>把右侧【libraries中的JRE System Library】删除重新导入.

完美解决!!

参考:

https://zhidao.baidu.com/question/506978967.html

原文地址:https://www.cnblogs.com/JDBC-xrch/p/6247008.html