Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API (restriction on required
2016-06-29 11:52
387 查看
像这样的异常信息,是eclipse设置问题,问题:
Access restriction: The type FileURLConnection is not accessible due to restriction on required library C:/Program Files/Java/jre6/lib/rt.jar
解决方法:
这个是eclipse设置问题,它默认把这些受访问限制的API设成了ERROR,只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。
Access restriction: The type FileURLConnection is not accessible due to restriction on required library C:/Program Files/Java/jre6/lib/rt.jar
解决方法:
这个是eclipse设置问题,它默认把这些受访问限制的API设成了ERROR,只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。
相关文章推荐
- Request.getparameternames 获取form表单里面所有的请求参数 。 返回一个Enumeration类型的枚举.
- 集成友盟微社区,自定义ui
- UICollectionView实现头部漂浮的效果
- UIScrollView 使用
- Leetcode 128. Longest Consecutive Sequence
- IOS UIView 04- 自定义控件
- IOS UIScrollView + UIButton 实现segemet页面和顶部标签页水平滚动效果
- 滑动UITableViewCell出现多个按钮
- 滑动UITableViewCell出现多个按钮
- DC/OS GUI 安装指南
- 将控件置于最上层 UITextView 限制行数 iOS 新手笔记
- iOS学习之GCD 信号量详解,dispatch_semaphore、NSOperationQueue
- 奇怪的异常 Process 'command '---.exe'' finished with non-zero exit value 2
- 只有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 // 节中包括 System.Web.SessionSta
- 提示:413 Request Entity Too Large 的解决方法
- UITableView根据section设置右侧索引
- 【UI】【View】View事件分发(一)
- 【Leetcode】Count Numbers with Unique Digits
- UIAlertController的使用
- 大学生没技能没经验就业难,多亏传智播客UI设计