Question

I am doing some crypto for my homework. The program doesn't show any errors while compiling. However when I run the program I get an exception - java.security.NoSuchAlgorithmException. I think this is due to the crypto restrictions. I have downloded and imported Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6 (but I am not sure whether the these libraries actually do the crypto). I couldn't find any Sun JCE jar which I've seen imported in some example programs that use crypto ( like import com.sun.crypto.provider.SunJCE).

Can anyone provide any directions as to how to run my code without exceptions?

Était-ce utile?

La solution

You have to download these files and follow the installation instruction in jce\README.txt

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top