1. Right-click Project-"Properties-" Java bulid path-"JRE System library-" Access rules-"Resolution select accessible, fill in the below * * Click OK.
2. Span style= "color: #000000;" > Base64decoder,import Sun.misc.BASE64Decoder is used when writing Java code in MyEclipse, but Eclipse tip:
Access restriction:the Type Base64decoder isn't accessible due to restriction on required library C:\Program
Files\java\jre6\lib\rt.jar
Acces S Restriction:the Constructor Base64decoder () isn't accessible due to restriction on required library C:\Program files\ Java\jre6\lib\rt.jar
solution 1 (recommended):
only need to remove the JRE System in project build path First Library, and then add the Repository JRE System Library, after recompiling everything is OK.
solution 2:
Windows, Preferences, Java, Compiler, Errors/warnings- >
Deprecated and trstricted API, Forbidden Reference (access rules): Change to warning
Originally from: http://blog.csdn.net/jbxiaozi/article/details/7351768
Sun.misc.BASE64Encoder cannot find a solution to the jar package