Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.java.policy

 
Netty
Greenhorn
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 java.io.FilePermission "<<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: java.security.AccessControlException: 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!
Janett
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic