Install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files (SAP include)

** Myself
 
JCE IBM Product JCE SUN Product
File name: unrestricted.zip File name: jce_policy-<version>.zip
jce_policy-1_4_2.zip
Content of file
· README.txt
· COPYRIGHT.html Copyright information [No file for IBM product]
· local_policy.jar Unlimited strength local policy file
· US_export_policy.jar Unlimited strength US export policy file
 
1) Download from SUN(ORACLE) or IBM product
     unrestricted.zip or jce_policy-<version>.zip
2) Extract/Install to JRE path (check java home path)
Window Unix
<java-home>\lib\security <java home>/lib/security
D:\j2sdk1.6\jre\lib\security /usr/java/jre/lib/security # SUN Solaris
/opt/java1.4/jre/lib/security # HP-UX
/usr/lib64/jvm/java-1_4_2-ibm-1.4.2_sr10/jre/lib/security # Linux64 bit
# For SAP ,SSL protocol, will be extract during installation phase
# Example SAP unix JAVA_HOME=/opt/java1.4
# JCE install at /opt/java1.4/jre/lib/security

2 comments:

Anonymous said...

I have followed all the above mentioned steps for download and installation of jce and have also extracted the jar files to the proper directory but still running a program gives runtime exceptions like:

Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.crypto.Cipher.getInstance(DashoA13*..)
at SimplePolicyTest.main(SimplePolicyTest.java:16)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.(DashoA13*..)
... 2 more
Caused by: java.lang.SecurityException: Cannot locate policy or framework files!

at javax.crypto.SunJCE_b.i(DashoA13*..)
at javax.crypto.SunJCE_b.g(DashoA13*..)
at javax.crypto.SunJCE_b$1.run(DashoA13*..)
at java.security.AccessController.doPrivileged(Native Method)
... 3 more


What is going on?????

JJJ2 said...

I'm getting the same error. I tried to install on my work computer but I got a even more confusing error. If you manage to fix it let me know.

Loading