I am trying to embed JavaFX in a swing applet. I have had no luck getting JavaFX to run as an applet or from web start so I have built a swing applet and attempted to use the JFXPanel to embed the application. I'm signing the app with a self signed key to allow me to load JavaFX libraries from the user's machine by looking in the default installation folders. When I load the applet this is the error I am getting which is clearly originating from (JFXPanel.java:127) in JavaFX 2.0 build 34.
java.security.AccessControlException: access denied (java.util.PropertyPermission javafx.macosx.embedded write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at javafx.embed.swing.JFXPanel$1.run(JFXPanel.java:127)
at javafx.embed.swing.JFXPanel$1.run(JFXPanel.java:125)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:125)
at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:142)
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 vwp.VwpApplet.inaugurate(VwpApplet.java:81)
at vwp.Loader.start(Loader.java:22)
at vwp.VwpApplet$1.run(VwpApplet.java:44)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.security.AccessControlException: access denied (java.util.PropertyPermission javafx.macosx.embedded write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at javafx.embed.swing.JFXPanel$1.run(JFXPanel.java:127)
at javafx.embed.swing.JFXPanel$1.run(JFXPanel.java:125)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:125)
at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:142)
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 vwp.VwpApplet.inaugurate(VwpApplet.java:81)
at vwp.Loader.start(Loader.java:22)
at vwp.VwpApplet$1.run(VwpApplet.java:44)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)