Access restriction: The type TelnetOutputStream is not accessible due to restric
2015-06-25 11:15
591 查看
报错信息:Access restriction: The type TelnetOutputStream is not accessible due to restriction on required library D:\myeclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre\lib\rt.jar
解决方案1:
Eclipse 默认把这些受访问限制的API设成了ERROR。
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
解决方案2:
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案3:
工程上右键->工程属性->java builder path->Libraries标签,点击JRE System Library里面的Access rules,add sun/** 为accessible,如果该项存在,就edit。
决方案4:
Windows -> Preferences -> Java -> Installed JREs -> 选择用的JDK -> Edit -> Add External JARs
阅读更多
相关文章推荐
- Access restriction: The type * is not accessible due to restrict,报错问题.
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第一种,OK。
- Access restriction: The type Resource is not accessible due to restriction on required library
- Access restriction: The type * is not accessible due to restrict,报错问题,只试过第二种,OK。
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Access restriction: The type is not accessible due to restriction on required library问题处理
- Access restriction: The type FileURLConnection is not accessible due to restriction
- Access restriction: The type * is not accessible due to restrict
- Access restriction:The type JPEGCodec is not accessible due to restriction on required library
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方法
- Access restriction: The type FtpClient is not accessible due to restriction on r
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type * is not accessible due to restrict,报错问题
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Access restriction: The type JPEGImageEncoder is not accessible due to restriction
- eclipse导入工程出现Access restriction: The type XX is not accessible due to restriction on required
- Access restriction: The type FtpClient is not accessible due to
- Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
- Access restriction:The type JPEGCodec is not accessible due to restriction on required library