0

sun misc.Base64 encoder cannot be resolved to a type in eclipse.

I have tried few solutions like changing

Windows->Preferences->java->compiler->forbidden rule error To Warning

But nothing worked!!

Is there any way to fix this?.Instead of java.utils.Base64 ..

1 Answers1

0

Welcome to SOF

The class sun.misc.Base64 will give you errors if you have a JRE above 1.8. There can be two solutions-

  1. As @dan1st suggested, use the class java.util.Base64
  2. Downgrade to JRE 1.8
JustinW
  • 2,567
  • 1
  • 13
  • 29