Access restriction: The method encode(byte[]) from the type CharacterEncoder,Access restriction: The type FileURLConnection is n
2011-03-05 11:50
1206 查看
像这样的异常信息,是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就可以编译通过了。
相关文章推荐
- The method encode(byte[]) from the type CharacterEncoder is not accessible due to restriction on req
- Access restriction: The method encode(byte[]) from the type CharacterEncoder
- Access restriction: The method encode(byte[]) from the type CharacterEncoder,Access restriction: Th
- Access restriction: The method encode(byte[]) from the type CharacterEncoder,Access restriction: The
- Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API (restriction on required
- Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API (restriction on required
- JAVA 使用BASE64提示Access restriction: The method 'CharacterEncoder.encodeBuffer(byte[])' is not API
- The method decodeBuffer(String) from the type characterDecoder is not accessible due to ...
- The method decodeBuffer(String) from the type CharacterDecoder is not accessible due to restriction
- The method showDialog(int) from the type Activity is deprecated-android旧版dialog不能用的问题
- SSH出错---The method getRealPath(String) from the type ServletRequest is deprecated request.getRealPath("")
- Access restriction: The method XXX from the type XXX is not accessible due to restriction XXX
- Access restriction: The method XXX from the type XXX is not accessible due to restriction XXX
- The method setCharacterEncoding(String) is undefined for the type HttpServle
- Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not access
- The method saveErrors(HttpServletRequest,ActionErrors)from the type Action is deprecated
- setBackgroundDrawable提示:The method setBackgroundDrawable(Drawable) from the type View is deprecated
- The method setBackgroundDrawable(Drawable) from the type View is deprecated
- ReactJs 报错 Element type is invalid: expected a string (from built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Me`.
- The method setCharacterEncoding(String) is undefined for the type HttpServletResponse