Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Posts: 1
  • Mark post as helpful
  • send pies
  • 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!
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic