Can't run JOGL demos

I just tried all of the JOGL demos with Win XP SP2, Java 1.5 RC1. If it didn’t give me an error about not having a feature supported, I got a system runtime error “shutdownHooks”, whatever that means. Soo… I can’t run anything JOGL it seems. Ideas?

same problem here

java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.Runtime.addShutdownHook(Unknown Source)
      at net.java.games.jogl.impl.windows.WindowsGLContextFactory.<init>(WindowsGLContextFactory.java:73)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at net.java.games.jogl.impl.GLContextFactory.getFactory(GLContextFactory.java:76)
      at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150)
      at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118)
      at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85)
      at demos.hwShadowmapsSimple.HWShadowmapsSimple.run(HWShadowmapsSimple.java:145)
      at demos.hwShadowmapsSimple.HWShadowmapsSimple.main(HWShadowmapsSimple.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

Hi, just create a .java.policy with the correct permission in your home directory and it should work fine.
If you don’t know the format, go and have a look to http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html

But we cant force users to make a policy file just to run a demo? That should not be required and I dont understand why it would be in this case. There is nothing in webstart that demands this as far as I know. Who is in charge of these demos? it should be fixed asap, as it reflects badly on the javagaming community imho.

// Gregof

It’s just how I manage to fixe the problem for me. The problem is not in webstart, but in the demo itself, which use funtionnalities which need permission. I agree that a user does not have to create a policy file to run the demo.

Which functionality is that?
All other webstarted programs I have run ask for permission on startup with a popup window, why cant these demos do that to?

// Gregof

The problem is that webstart is picking up an old version of JOGL. It will be fixed by the next release if not sooner. You can always download the source, compile the demos, and run the apps locally.