Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javascript: x()javascript: x()Hello everybody,
I have a big problem. I want to implement an Applet, that can read and write files in order to change them. So I added the following lines to the java.policy file under the direction J2sdk1.4.1_01\jre\lib\security.
grant {
permission "<<ALL FILES>>", "read, write";
permission javax.sound.sampled.AudioPermission "record";
permission java.util.PropertyPermission "user.dir", "read";
permission java.util.PropertyPermission "user.home", "read";
But this didn't work. That's why I also created a .java.policy where the policytool wanted to have it: "Dokumente und Einstellungen/<user>"(WinXP).
But this didn't work, too! I always gets this message: java.lang.ExceptionInInitializerError: access denied (java.util.PropertyPermission user.home read)
I don't know what to do now!
Where must I create the .java.policy file?
Thanks f�r every help!
Are we home yet? Wait, did we forget the tiny ad?
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic