Jump to content
Excelsior Forums

Using JCE with native compiled application

Recommended Posts


I try to do AES Encryption in my java app with bouncycastle. Everything works fine when started from eclipse

after applying following fix: http://charithaka.blogspot.com/2008/08/how-to-avoid-javasecurityinvalidkeyexce.html.

Can anybody tell me how to get the same behaviour for my compiled application, because I always get invalid key


thx in advance


Share this post

Link to post
Share on other sites


You can install "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6" into JRE in the Excelsior JET profile.

Instead of copying jar files to


copy them to


where <JET-home> is Excelsior JET installation directory, and <profile-name> - name of the JET profile you use, usually it matches the Java version (for example, 1.6.0_20).

You can run JET Setup to check which JET profile is active, if there are multiple profiles.




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now