I tried to deploy as WebStart without success.
- The SDK after I enable WebStart in project properties sets the flag back to false once I click “Ok”.
- You cannot load saved settings the way you normally would: Preferences.userRoot().nodeExists(settingsKey)
- The settings window tries to show always on top which would seem is not allowed in WebStart
- It would seem you also cannot save app settings, which is done automatically by jME:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:603) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:908) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:597) ... 1 more Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "preferences") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366) at java.security.AccessController.checkPermission(AccessController.java:560) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:284) at java.util.prefs.Preferences.userRoot(Preferences.java:455) at com.jme3.system.AppSettings.save(AppSettings.java:299) ... 8 more
At which point I gave up…
Is webstart still supported? (I know it’s not the most fashionable technology these days, but still it would be nice to use…)