The Artima Developer Community
Sponsored Link

Java Answers Forum
access denied exception

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

access denied exception Posted: Aug 20, 2002 8:09 PM
Reply to this message Reply
Advertisement
Hello,
when i run my applet on IE browser the following exception occurs
Exception:java.security.AccessControlException:access denied(java.util.PropertyPermission user.dir read)
what is the problem?
here is my java.policy// Standard extensions get all permissions by default

grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};

// default permissions granted to all domains

grant {
permission java.util.PropertyPermission "user.dir","read";
permission java.security.AllPermissions;
permission java.util.PropertyPermission "user.home","read";
permission java.io.FilePermission "${user.home}$/*","write,read";
permission java.io.FilePermission "${user.dir}$/*","read,write";
permission java.io.FilePermission "<<ALL FILES>>","read,write";
};

thanks

Topic: Java applet status bar issue !!! Previous Topic   Next Topic Topic: how can we convert a numerical to a string??

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use