Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Permission Error

 
Jonathan Steel
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial: Applet Security Restrictions
 
Bud Stambaugh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic