Skip to Main Content

Java APIs

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!

error when applet try to load java.security.spec.PKCS8EncodedKeySpec class

843810Dec 11 2002 — edited Dec 20 2002
Hi i am writing an applet which grants permissions from the user
.I am using swing components so i use dubuild(from microsfot) to make
a cab file,then i sign it and all goes ok.

Also in my applet i try to read a Key from the user's harddrive in
PKCS8Encoded format but it fails.

I tried to run the same code as an application and all worked fine.
I suspect that somehow i have to include the PKCS8EncodedKeySpec.class
in the cab file.I have put it inside the cab file(together with all the swing components classes and mine too) but i still get NoClassDefFoundError:java.security.spec.PKCS8EncodedKeySpec
that means it can load the specific class that my applet has been previously compiled with.

i would appreciate any suggestion,help

Yours
Andrew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2003
Added on Dec 11 2002
1 comment
200 views