Results 1 to 3 of 3
  1. #1
    swetamakode is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Default Getting exception when using setProperty() in applet

    Hi,

    I am getting exception java.security.AccessControlException: access denied ("java.util.PropertyPermission" "java.security.policy" "read") when using setProperty() in applet.I have created the signed applet using jarsigner and in my .jar file I kept the java.policy file to grant all permission but still I am getting the same exception.

    Please let me know how to fix it?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,303
    Rep Power
    20

    Default Re: Getting exception when using setProperty() in applet

    Moved from New to Java.

    swetamakode, this is the second time you have posted in the wrong section: How to access the file system and to execute the keytool within applet

    Any future threads started in the wrong place are liable to be removed, not moved to the correct section.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: Getting exception when using setProperty() in applet

    in my .jar file I kept the java.policy file to grant all permission
    The permissions should be given in the .java.policy file which should be located in the user.home folder.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 5
    Last Post: 02-14-2011, 11:39 PM
  2. Applet throws exception while recording
    By Basit56 in forum Java Applets
    Replies: 1
    Last Post: 08-20-2009, 01:42 PM
  3. Replies: 2
    Last Post: 01-27-2009, 04:11 PM
  4. System.setProperty("http.agent"..) appends Java/1.6
    By wwuster in forum Advanced Java
    Replies: 1
    Last Post: 10-25-2008, 03:20 PM
  5. Replies: 1
    Last Post: 03-08-2008, 06:41 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
  •