RSA加密报错

Eclipse中运行正常,在bat下运行报错:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
解决办法,添加以下jar包。


jre/lib/rt.jar
jre/lib/jsse.jar
jre/lib/jce.jar
jre/lib/charset.jar
jre/lib/ext/dnsns.jar
jre/lib/ext/sunpkcs11.jar
jre/lib/ext/sunjce_provider.jar
jre/lib/ext/localedata.jar

你可能感兴趣的:(RSA加密报错)