[Aglets-users] Urgent need help! Problem with file access permissions-Aglets
Status: Beta
Brought to you by:
cat4hire
|
From: shruti n. <shr...@gm...> - 2012-03-31 14:28:31
|
Hi,
I am accessing a file on my system from an aglet whose code is also on my
system
I am getting the following exception:
java.security.AccessControlException:access denied
("java.util.PropertyPermission" "user.dir" "read")
at java.security...etc etc
I edited the aglets.policy in $HOME/.aglets/security and appended the
following line
permission java.io.FilePermission
"C:\\Users\\new\\Documents\\arffs\\bayes_labeled.arff", "read";
to all 3 sections, (atp, http and file)
bayes_labeled.arff is the file I need to read
I am still getting the same exception. Please someone tell what am I doing
wrong here?
I'll be very grateful! Have been stuck on this for the past week.
Thanks a tonne in advance!!
Shruti
|