• Post Reply Bookmark Topic Watch Topic
  • New Topic

AccessControlException (Linux)

Kevin Jaffe
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting the error
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)...
when I try to load an applet to Netscape 4.61 off one of my
subdirectories. The line that triggers the error is
new Thread(this).start();
The problem seems to have something to do with the location of
the class files, because I have no problem loading the applet
when the class files are in a subdirectory in the JDK
installation tree (/usr/local/jdk1.3.1). Also, the applet
performs fine if I run it using appletviewer, even off my
Can someone guess why I'm getting this error?
p.s. The full error message is:
java.security.AccessControlException: access denied (java.lang.RuntimePermission
at java.security.AccessControlContext.checkPermission(AccessControlConte
at java.security.AccessController.checkPermission(AccessController.java:
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:139)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:279)
at java.lang.Thread.init(Thread.java:265)
at java.lang.Thread.<init>(Thread.java:345)
at XYZApp.start(XYZApp.java:346)
at sun.applet.AppletPanel.run(AppletPanel.java:358)
at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:127)
at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:1
at java.lang.Thread.run(Thread.java:484)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!