Hi there Guys,
I'm just being preemptive here, cos you know how things work in dev, and then you move it into
test, and things that were always working on your machine stop working. ;-)
I was wondering, Why, or rather, under which conditions would a SecurityException be thrown when calling getCanonicalFile, or getCanonicalPath from the File class. Currently I am doing this in dev, and it's working no probs. I am just wondering why this would happen, and if it does happen, what I can do to stop this from happening.
The
java doc says... "If a required system property value cannot be accessed, or if a security manager exists and its java.lang.SecurityManager#checkRead method denies read access to the file"
What can I do to gain read access if this SecurityManager dude tells me I don't have read access? Will that be an operating system setting?
Thanks in advance.
cheers
Darryl