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

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.)

Leave a Comment