import sun.misc.BASE64Encoder results in error compiled in Eclipse

The Solution to import sun.misc.BASE64Encoder results in error compiled in Eclipse is


Go to Window-->Preferences-->Java-->Compiler-->Error/Warnings.
Select Deprecated and Restricted API. Change it to warning.
Change forbidden and Discouraged Reference and change it to warning. (or as your need.)

~ Answered on 2011-04-05 09:07:19


Most Viewed Questions: