This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Is this policy file correct? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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: 8291

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Is this policy file correct?
 
Similar Threads
java.security file policy setting not working...
Problem with Sun's Bootstraping Example
Setting up Java
AccessControlException
java.policy grant codeBase