• Post Reply Bookmark Topic Watch Topic
  • New Topic

.java.policy  RSS feed

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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!