小编use*_*670的帖子

java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable

我使用 iText5.5.0和 BouncyCastlebcprov-jdk15on-1.50对 pdf 进行数字签名。如果我不在方法中包含时间戳,一切都会正常MakeSignature.signDetached

当我使用TSAClient指定 时TSAURL,我的代码给出了错误

java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1Encodable at MakeSignature.signDetached method
Run Code Online (Sandbox Code Playgroud)

即使我处理了异常,我的程序也会终止。

我尝试了不同版本的 bouncycastle jars,但我得到了相同的错误,但未找到类的差异。

我确实需要在签名中包含时间戳。我应该怎么办。

java timestamp bouncycastle exception itext

5
推荐指数
1
解决办法
5万
查看次数

标签 统计

bouncycastle ×1

exception ×1

itext ×1

java ×1

timestamp ×1