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

    Default Applet with Signed JAR throws AccessControlException in AppletViewer

    Hi,

    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:

    java.security.AccessControlException:
    access denied (java.util.PropertyPermission user.dir read)
    at java.security.AccessControlContext.checkPermission (AccessControlConte
    xt.java:264)
    at java.security.AccessController.checkPermission(Acc essController.java:
    427)
    at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
    at java.lang.SecurityManager.checkPropertyAccess(Secu rityManager.java:12
    85)
    at java.lang.System.getProperty(System.java:628)

    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
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    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, 02:28 AM
  3. Replies: 2
    Last Post: 10-05-2008, 07: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, 08:54 AM
  5. run java signed applet in vista
    By nanaji in forum Java Applets
    Replies: 7
    Last Post: 05-14-2008, 12:59 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
  •