Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic


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!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!