Results 1 to 3 of 3
  1. #1
    Gatts79 is offline Member
    Join Date
    Aug 2008
    Posts
    16
    Rep Power
    0

    Default How to set permissions for a JApplet

    Hello-

    I extended a JApplet for my project and am having permission issues running the JApplet in the applet viewer in netbeans as well as off an html page on my site. I get the following error:

    java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
    at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(Acc essController.java:546)
    at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
    at sun.applet.AppletSecurity.checkAccess(AppletSecuri ty.java:235)
    at java.lang.ThreadGroup.checkAccess(ThreadGroup.java :288)
    at java.lang.Thread.init(Thread.java:332)
    at java.lang.Thread.<init>(Thread.java:379)
    at org.jdesktop.mtgame.Renderer.<init>(Renderer.java: 465)
    at org.jdesktop.mtgame.RenderManager.<init>(RenderMan ager.java:70)
    at org.jdesktop.mtgame.WorldManager.<init>(WorldManag er.java:115)
    at applet.demo.JAppletBase.initWorldManager(JAppletBa se.java:211)
    at applet.demo.JAppletBase.init(JAppletBase.java:106)
    at sun.applet.AppletPanel.run(AppletPanel.java:424)
    at java.lang.Thread.run(Thread.java:637)

    I would think that right clicking on the .java file for my project and telling it to run would at least not give permissions on my local box; but I am getting this error with the appletviewer and off my site.

    Thanks In Advance,

    Paul

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  3. #3
    Gatts79 is offline Member
    Join Date
    Aug 2008
    Posts
    16
    Rep Power
    0

    Default

    I have tried self signing with netbeans and it still didn't work :(

    Paul

Similar Threads

  1. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 06:14 AM
  2. JApplet problems
    By Rgfirefly24 in forum New To Java
    Replies: 2
    Last Post: 04-24-2008, 07:36 PM
  3. Database to JApplet
    By Preethi in forum New To Java
    Replies: 0
    Last Post: 03-26-2008, 05:18 AM
  4. security permissions are causing my sleepless nights.
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 03-08-2008, 07:54 PM
  5. Midlet Permissions Access
    By fernando in forum CLDC and MIDP
    Replies: 1
    Last Post: 08-07-2007, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •