Java: How to resolve Access Restriction error

Issue:

Access restriction: The constructor 'BASE64Decoder()' is not API (restriction on required library...)

 

Solution:

  1. Go to the Build Path settings in the project properties.
  2. Remove the JRE System Library
  3. Add it back; Select "Add Library" and select the JRE System Library.

 

你可能感兴趣的:(Java: How to resolve Access Restriction error)