• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Permission Error

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Tutorial: Applet Security Restrictions
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
permaculture is largely about replacing oil with people. And one tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic