0 Replies Latest reply on Feb 16, 2010 1:25 PM by 843811

    AccessControlException in signed Applet in jre1.6?

      i am using a signed applet in my application . it works fine for jre1.4,1.5. but its not working in jre 1.6.0-b105 version. its giving accesscontrol exception as below

      java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
           at java.security.AccessControlContext.checkPermission(Unknown Source)
           at java.security.AccessController.checkPermission(Unknown Source)
           at java.lang.SecurityManager.checkPermission(Unknown Source)
           at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
           at com.application.MyApplet.getClassLoader(MyApplet.java:94)
           at com.application.MyApplet.init(MyApplet.java:56)
           at sun.applet.AppletPanel.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)

      even for higher version of jre 1.6-b11 same code will work. any one having an idea what might be the reason. or is there any defect in this version of jre ? any pointer on this will be helpful for me