This discussion is archived
1 Reply Latest reply: Sep 9, 2009 4:55 PM by 843851 RSS

acces a file from a xlet

843851 Newbie
Currently Being Moderated
I am trying to acces a local file from a xlet but I am getting the following error:

java.security.AccessControlException: access denied (java.io.FilePermission write.txt write)


Can anyone help me? How can I get the permissions?


Thank you,
  • 1. Re: acces a file from a xlet
    843851 Newbie
    Currently Being Moderated
    Hi,

    You'll need to request the file permission in a Permission Request File. The exact format of the file will vary slightly depending on the platform, I believe, but you want to make sure that you request the <file ...> permission and that you have a signed app, or at least an appId in the signed range if you are not using a device/simulator that checks security

    Hope that helps...