Ok, I’ve recently posted about trying to create an applet.
I took a look at how I can create the applet in NetBeans 4.0.
Appletviewer reports the applet as loaded, but after a second or two I get this exception:
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:159)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288)
at java.lang.Thread.init(Thread.java:310)
I think this happens because I set up a thread to run somethings. How can I grant full access to my applet?
Weird thing is IE opens the applet, but doesn’t do some things (doesn’t load a texture it’s supposed to. I read about a java.policy file something. How do I use this and does NetBeans understand it automatically? Thanks