Base64Encoder cannot be resolved

前端 未结 4 1014
一个人的身影
一个人的身影 2020-12-31 13:10

This is my Java code in a JSP file. I am getting

Base64Encoder cannot be resolved.

Why is it so? I have to add something relat

4条回答
  •  伪装坚强ぢ
    2020-12-31 13:43

    I suspect you're not using a standalone JRE instead of the one included in the JDK.

    1. Right click your project and click "Build Path" -> "Configure Build Path"
    2. Under "Libraries", click on the existing JRE and then click "Remove"
    3. Click "Add Library" -> "JRE System Library" -> "Finish"

    The class should now resolve.

提交回复
热议问题