运行jar文件时初始化程序错误的异常

时间:2017-03-08 11:18:39

标签: java jar licensing secret-key

我正在使用netbeans IDE为我的java项目创建许可证。

在netbeans IDE中运行项目时,它运行时没有错误。

但是在运行jar文件(从IDE构建)时,它显示以下错误

  

初始化程序错误中的异常   javax.crypto.secretkeyfactory.nextspi

如何解决此错误?以下图片显示错误

enter image description here

1 个答案:

答案 0 :(得分:0)

It looks like a problem with the JRE/JDK. Check which JRE you're using (Specifically if its Oracle or IBM) and try using the other one. The keystores created by IBM and ORACLE JREs are not compatible with each other.