Results 1 to 2 of 2
  1. #1
    Technolithic is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default Applet with Signed JAR throws AccessControlException in AppletViewer


    Perhaps I'm missing a few marbles that contained the security protocol for the applet viewer utility and if so, please let me know where I can reorder the much needed replacement parts!

    Anyhow, I have an applet that's been wrapped up into a JAR that is also signed. The applet can open a file chooser dialog box when running inside of the browser, but when running inside of the applet viewer, the file chooser throws an Exception:
    access denied (java.util.PropertyPermission user.dir read)
    at (AccessControlConte
    at java.lang.SecurityManager.checkPermission(Security
    at java.lang.SecurityManager.checkPropertyAccess(Secu
    at java.lang.System.getProperty(

    Does the Signed JAR help out with the security permissions or do I really need to set the permissions file for the applet to get it to run in the applet viewer?

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Sign the jar file in order to have the permission to make modification on the local file system or make a policy to some of your classes:

    Java Security Evolution and Concepts, Applet Security

Similar Threads

  1. Problem with applet, between appletviewer and browser
    By Goodwine in forum Java Applets
    Replies: 0
    Last Post: 11-30-2008, 04:09 AM
  2. [SOLVED] signed applet, or what
    By AXH in forum Java Applets
    Replies: 2
    Last Post: 10-10-2008, 01:28 AM
  3. Replies: 2
    Last Post: 10-05-2008, 06:13 PM
  4. Signed applet works only with jre 1.6u10 beta...
    By smartizzz in forum Java Applets
    Replies: 0
    Last Post: 08-07-2008, 07:54 AM
  5. run java signed applet in vista
    By nanaji in forum Java Applets
    Replies: 7
    Last Post: 05-14-2008, 11:59 AM

Posting Permissions

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