求改正,急急急!!!
byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);sun.misc.BASE64Encoder().encode(enc);
Multiple markers at this line
- Access restriction: The constructor BASE64Encoder() is not accessible due to restriction on required library
C:\jdk1.6.0_22\jre\lib\rt.jar
- Access restriction: The method encode(byte[]) from the type CharacterEncoder is not accessible due to
restriction on required library C:\jdk1.6.0_22\jre\lib\rt.jar
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:
\jdk1.6.0_22\jre\lib\rt.jar --------------------编程问答-------------------- 办法1:
右键项目选择properties -> 选择Build Path -> 选择Libraries -> 删除JRE System Library -> Add Library JRE System Library -> 加入JRE
办法2:
右键项目选择propertie -> java bulid path -> JRE System Library ->access rules,看看这里定义了什么访问限制,看不懂就全删了。
补充:Java , Java SE