• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

AccessControlException (Linux)

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
subdirectory.
Can someone guess why I'm getting this error?
Thanks!
KJ
p.s. The full error message is:
java.security.AccessControlException: access denied (java.lang.RuntimePermission
modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
at java.security.AccessController.checkPermission(AccessController.java:
399)
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
23)
at java.lang.Thread.run(Thread.java:484)
 
reply
    Bookmark Topic Watch Topic
  • New Topic