aspose file tools*
The moose likes I/O and Streams and the fly likes File Permission Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "File Permission Error" Watch "File Permission Error" New topic
Author

File Permission Error

Jonathan Steel
Greenhorn

Joined: Jan 26, 2005
Posts: 13
My applet needs to read information from a network file but this file must not remain open so first I copy it to a new file and then read that one. This works fine when I run it from JBuilder, but when I launch it from IE it gives me the error java.security.AccessControlException:access denied(java.io.FilePermission p:\... write). Im opening the source file with a FileInputStream, not requesting write permission. So why do I get this error and how do I get around it.

Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

The Java Tutorial: Applet Security Restrictions


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Bud Stambaugh
Greenhorn

Joined: Feb 21, 2005
Posts: 5
I appreciate the tip from "bartender" because I am also trying to use an applet on my webpage that needs to read files from my own web location. I have read, read and re-read the 'Quick Tour of Controlling Applets' and for the life of me I can't get the WriteFile example to work after putting the 'mypolicy' file in C:Test. I'm beginning to wonder if there may be something wrong with a typo or something in the tutorial. I would greatly appreciate any help anyone is willing to give me. Sincerely, Bud
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Permission Error