This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The following code raises a security exception in an AWT applet and prevents the applet from running in the IDE. The code works perfectly in a web browser, and was run/debugged on previous versions of NetBeans IDE (3.x): buttons1=getImage(getCodeBase(),"img/nav1.jpg"); java.security.AccessControlException: access denied (java.io.FilePermission \C:\Documents and Settings\wreu\app-2005\build\classes\img\nav1.jpg read) 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 java.lang.SecurityManager.checkRead(SecurityManager.java:871) at sun.awt.image.URLImageSource.<init>(URLImageSource.java:37) at sun.applet.AppletImageRef.reconstitute(AppletImageRef.java:33) at sun.misc.Ref.get(Ref.java:47) at sun.applet.AppletViewer.getCachedImage(AppletViewer.java:377) at sun.applet.AppletViewer.getImage(AppletViewer.java:372) at java.applet.Applet.getImage(Applet.java:236) at java.applet.Applet.getImage(Applet.java:258) at app.init(f1app.java:257) This appears to be related to issue 51622, which (in 4.0) was a similar problem with creating threads.
I should add that this is in 4.1 EA 2. A work-around would be useful as I can't wait for the beta.
It's duplicate of issue 51622.
Forgot mark as duplicate. See that issue for workaround hint. *** This issue has been marked as a duplicate of 51622 ***