Applet Help ??

Hello,
I m experiencing Applet with JOGL, and I have protection problem. I working with NetBeams 3.6 RC3 and when the IDE launch itself the applet I don t have any problem but when the applet is start with the AppletViewer this error occur :
java.lang.ExceptionInInitializerError
at net.java.games.jogl.impl.GLContext.(GLContext.java:51)
at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:52)
at net.java.games.jogl.GLCanvas.(GLCanvas.java:68 )
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:117)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80)
at Aviron.init(Aviron.java:102)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jawt)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkLink(SecurityManager.java:810)
at java.lang.Runtime.loadLibrary0(Runtime.java:782)
at java.lang.System.loadLibrary(System.java:834)
at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:51)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.jogl.impl.NativeLibLoader.(NativeLibLoader.java:46)
… 8 more

so can any body help me ???

I have another question … easier … ;D, In which cas swing is less performant than AWT ?? I read that’s done using offscreen … so is it a cap that as to be check ??

Thanks for Help …

Wich JOGL version are you using?

JOGL 1.1 beta 05 release build

Sorry, this is a bug in 1.1 b05 that GKW just fixed. You can see the fix in the CVS repository in src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java. The fix will be present in 1.1 b06.

The bug I fixed was related to using a shutdown hook. This is related to loading the jogl native dll. I am guessing that you don’t have the proper security permissions set. I bet netbeans provides the correct permissions automatically.

Thanks for reply …
but by the release of the next jogl … what could I do … I m not realy familiar with java specificities so could you please be realy explicit :smiley:
Or neither is no way to go through this bug, I also have a second question.
In which cas swing is less performant than AWT ?? I read that’s done using offscreen … so is it a cap that as to be check ??

Thanks for Help …

I am looking have JOGL run from an applet.

Do you have some sample code that includes the JOGL download in the APPLET tag of the jar file that works for various platforms.

thanks for any help