在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
C:\Program Files\Java\jre6\lib\rt.jar是BASE64Encoder类所在的jar包