• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic