File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes file policy setting not working... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " file policy setting not working..." Watch " file policy setting not working..." New topic
Author file policy setting not working...

David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
Ive got a directory (namely C:\Documents and Settings\David\My Documents\Java\)
I want to grant all security permissions to.
So I made a policy file with the policy tool.
this is what the file contains:

grant codeBase "file:/C:/Documents and Settings/David/My Documents/Java/*" {

this policy file is stored here:

I want to add this to my file...
so I added my file name to it, here is a snippet containing the information...

single system-wide policy file,
# and a policy file in the user's home directory.

# whether or not we expand properties in the policy file
# if this is set to false, properties (${...}) will not be expanded in policy
# files.

the line of code I added was the one starting at "policy.url.2=file:"
however, when I tried my applets, they still seem to have no security permissions for accessing files etc.
the applets im trying to run are contained within a sub-directory of My Documents\Java\

What am I doing wrong? There must be something I'm overlooking...
I hope someone can help.

[ March 10, 2005: Message edited by: David Llewellyn ]
David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
Anyone have any idea what I'm doing wrong?
I still can't figure it out...
I agree. Here's the link:
subject: file policy setting not working...