SecurityException - AES 256

I tried the code listing from the following link and AES 128 works fine.

http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html

I downloaded the Unlimited jurisdiction policy files and replaced the existing local_policy.jar and us_export_policy.jar with the new ones, but I get a Security exception when I do AES 256

Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs

at javax.crypto.e.<clinit>(Unknown Source)

... 3 more

Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!

I am working with RAD, so the new jar files went into eclipse\jre\lib\security and I also tried putting them under runtimes\base_v51\java\jre\lib\security

I dont know what I am missing, Can someone point me in the right direction please. Thanks a lot.

[879 byte] By [AyaJavaa] at [2007-11-26 19:43:17]
# 1

I have tried copying the two jar files to under lib/ext also. But no luck.

This is how the java.security file looks like:

security.provider.1=com.ibm.crypto.provider.IBMJCE

security.provider.2=com.ibm.jsse.IBMJSSEProvider

security.provider.3=com.ibm.security.jgss.IBMJGSSProvider

security.provider.4=com.ibm.security.cert.IBMCertPath

security.provider.5=com.ibm.crypto.pkcs11.provider.IBMPKCS11

security.provider.6=com.sun.crypto.provider.SunJCE

security.provider.7=gnu.crypto.jce.GnuCrypto

security.provider.8=org.bouncycastle.jce.provider.BouncyCastleProvider

I am trying to see what else could cause this problem.. Could it be a version issue?

AyaJavaa at 2007-7-9 22:26:17 > top of Java-index,Security,Cryptography...
# 2
Ok, I figured out the problem. Whew....I downloaded the unlimited jurisdiction policy files from IBM, and replaced the ones from Sun, and it worked.
AyaJavaa at 2007-7-9 22:26:17 > top of Java-index,Security,Cryptography...