Java常见异常

1、java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available

Exception in thread "main" java.lang.AssertionError: java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available
        at de.schlichtherle.license.PrivacyGuard.getCipher(Unknown Source)
        at de.schlichtherle.license.PrivacyGuard.getCipher4Decryption(Unknown Source)
        at de.schlichtherle.license.PrivacyGuard.key2cert(Unknown Source)
        at de.schlichtherle.license.LicenseManager.install(Unknown Source)
        at com.intple.esr.license.EsrLicenseManager.installLicenseFile(EsrLicenseManager.java:146)
        at com.intple.esr.license.EsrLicenseManager.verify(EsrLicenseManager.java:46)
        at de.schlichtherle.license.LicenseManager.verify(Unknown Source)
        at com.intple.esr.bootstrap.Bootstrap.checkLicense(Bootstrap.java:95)
        at com.intple.esr.bootstrap.Bootstrap.main(Bootstrap.java:203)
Caused by: java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available
        at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
        at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
        ... 9 more

把j文件 sunjce_provider.jar 拷贝到Java_Home/jre/lib/ext.

原文地址:https://www.cnblogs.com/kofxxf/p/4205872.html