Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JCE with Servlets | ERROR: java.security.KeyStoreException: jceks not found

843810Apr 11 2003 — edited Apr 11 2003
I'm having some problem with this JCE stuff. I can compile the class, it finds the import fine in the classpath. I have made the keystore successfully. But when I run this simple line of code it doesn't work:

KeyStore keyStore = KeyStore.getInstance("jceks");

I keep getting this error:
java.security.KeyStoreException: jceks not found

I don't get it. When I use the keytool to generate the keystore like this:
C:\>keytool -genkey -alias myNewKey -storetype jceks -keystore MyKeyStore.store

Please, someone, anyone, help!

Dan

FYI: I have copied Jce1_2_1.jar, US_export_policy.jar, sunjce_provider.jar into <java-home>/jre/lib/ext and the java.security file has been updated with the addtional line (Security.provider.2=com.sun.crypto.provider.SunJCE). I'm running jdk1.2.2

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2003
Added on Apr 11 2003
5 comments
1,601 views