File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "File Permission Error" Watch "File Permission Error" New topic

File Permission Error

Jonathan Steel

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 denied( 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.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

The Java Tutorial: Applet Security Restrictions

[How To Ask Questions On JavaRanch]
Bud Stambaugh

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:
subject: File Permission Error
It's not a secret anymore!