Applet problem running locally

Trying to run JOGL 1.1 as an applet.

Not sure what needs to happen.

I am getting errors:
java.lang.ExceptionInInitializerError
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jawt)

jogl.dll is located in the
j2sdk1.4.2_05/jre/bin and lib/ext folders

The line of code it hangs at is;
GLCanvas glCanvas = glFactory.createGLCanvas( glCapabilities );

in this sequence:

GLCapabilities glCapabilities = new GLCapabilities();
GLDrawableFactory glFactory = GLDrawableFactory.getFactory();
GLCanvas glCanvas = glFactory.createGLCanvas( glCapabilities );

Looks like you have some problem with signing (if you load your applet from the web) or with the path (if you load it from file … I guess that’s what you mean with running locally). This link http://java.sun.com/sfaq/#diff may help. Basically you have to grant your applet permission to load the jogl libs, java.lang.RuntimePermission loadLibrary points to that kind of error.

Short version: Applets depend on policies allowing them to access security managed calls like loadlibrary, you can modify a file containing that policies or provide a signed applet with its own file, which will be used instead of the local one and the user will be asked if he wants to allow the applet to access the specified calls.

You can find more on permissions here http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html and more about signing applets, i.e. how to put permissions conveniently into an applet via policies, here http://java.sun.com/j2se/1.3/docs/guide/security/PolicyFiles.html

HTH

Wolfgang