File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Is this policy file correct? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is this policy file correct?" Watch "Is this policy file correct?" New topic
Author

Is this policy file correct?

David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
Basically I want to grant all possible security permission to a directory and all files and subdirectories it contains....
the directory im talking about is "C:\Documents and Settings\David\My Documents\Java\"



Could someone let me know if this is correct?
It would be very appreciated,
cheers
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

David, please refrain from posting the same topic in multiple forums or posting the same question more than once in the same forum. We're all volunteers here, answering questions in our spare time. By posting the same question more than once you make more work for the bartenders who then have less time to answer other people's questions.
If you aren't getting the answer as fast as you wish, you should probably start on your own research. A good place to start is the Java Tutorial. It covers a great deal of the API, including controlling applet behavior with a policy file. Work through the example. Notice that when you set up a policy file for an applet, the code base is a URL, not a directory on the local file system.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
Sorry about that, I won't do it again.
Thanks for the links Joe
David Llewellyn
Ranch Hand

Joined: Feb 01, 2005
Posts: 45
Notice that when you set up a policy file for an applet, the code base is a URL, not a directory on the local file system


I got it working, actually a directory on the local file system works fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this policy file correct?
 
Similar Threads
java.security file policy setting not working...
Setting up Java
Problem with Sun's Bootstraping Example
AccessControlException
java.policy grant codeBase