First: Click on the project---->build path--->configure Build Path
然后:java build path --->libraries--->JRE System Library
Generally no rules have been set
Then Edit---->Edit--->Resultion select this as Accessible
Rule path is set to **
as the picture shows
You can use the Base64Encoder class normally