导入的jar包不存在

imported jar package does not exist

我正在编写 class 以使用 base64 对字符串进行编码。

我下载了jar文件,并通过以下方式将其导入到我的项目中:

Right click on the project library properties -> Click on the Add/Jar Folder button -> Navigate to the jar file I wish to add -> Click on it and click open to upload it to the library

jar上传成功,在项目库中可见。 但是当我尝试使用它时,netbeans 说包 org.apache.commons.codec.binary.Base64。不存在

代码如下:

package dfqeas.online.actions.application;
import org.apache.commons.codec.binary.Base64;  //this is the package that netbeans says it does not exist

public class encryptbank {

public String encryptbank(String words){

    String original = words;
    String Salt = "butternut";
    String fullyEncoded;

    //encoding byte into base 64
    byte[] encoded = Base64.encodeBase64(original.getBytes());
    byte [] salty = Base64.encodeBase64(Salt.getBytes());

    fullyEncoded = new String(encoded) + new String(salty);


    return fullyEncoded;
}

   } 

刚开始学习java和Netbeans,请指教

尝试重新启动 NetBeans 8.2 IDE。