java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String -
i trying encrypt plain text using org.apache.commons.codec.binary.base64. when call method org.apache.commons.codec.binary.base64.encodebase64string(abytearray)
, gives following exception
exception in thread "main" java.lang.nosuchmethoderror: org.apache.commons.codec.binary.base64.encodebase64string([b)ljava/lang/string;
i using jar, org-apache-commons-codec.jar. please me can't understand wrong this.
first of encoding not encryption. changing representation of string while encoding, changed back.
since getting exception means @ least have jar in classpath. open jar suitable zip tool 7-zip , @ manifest.mf file. jar version should greater 1.4 according base64javadoc. download latest version , replace older version.
Comments
Post a Comment