# addProvider() exception in applet

leo_trakhtenberg@prusec.com
Thu, 4 Mar 1999 15:55:48 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: sfg4@java.sun.com: "hi"
- Previous message: Dan Ruderman: "Signed applets"
- Next in thread: Jan Luehe: "Re: addProvider() exception in applet"

    From: leo_trakhtenberg@prusec.com

    To: java-security@java.sun.com

    Message-Id: <8525672A.0072FA06.00@notes.prusec.com>

    Date: Thu, 4 Mar 1999 15:55:48 -0500

    Subject: addProvider() exception in applet

I am trying to setup SunJCE provider in an applet to have some basic
encryption functionality.
So when I call addProvider() the applet returns an exception.

/* SAMPLE CODE */
public class CryptApplet extends Applet
{
public void init()
{
Security.addProvider(new com.sun.crypto.provider.SunJCE());
}
}

/* CONSOLE OUTPUT */
java.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged
Possible causes: If you are trying to use J/Direct (@dll.import), check
your compiler version (for JVC, requires 4336 or greater.) If you are
trying to use RNI, there are new requirements: see documentation.
at java/security/AccessController.doPrivileged (AccessController.java)
at com/sun/crypto/provider/SunJCE.<init> (SunJCE.java:54)
at CryptApplet.init (CryptApplet.java:36)
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)

- Next message: sfg4@java.sun.com: "hi"
- Previous message: Dan Ruderman: "Signed applets"
- Next in thread: Jan Luehe: "Re: addProvider() exception in applet"