Add this property to your java.policy file.
 
permission java.lang.RuntimePermission "accessClassInPackage.sun.awt.windows";  
 
You may want to grant permission only for specific codebase, like the example below.
 The applet is present in the applets directory under the context 'jsw'.
 
grant codeBase "http://localhost:8080/jsw/applets/*" {
    permission java.lang.RuntimePermission "accessClassInPackage.sun.awt.windows";  
}
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Tesser
Sent: Tuesday, May 02, 2006 2:54 PM
To: jasperreports-questions@lists.sourceforge.net
Subject: [jasperreports-questions] applet security

I am using the applet but if I try to print or save I get the following

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt.windows)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
    at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)

Reply via email to