This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Applets and the fly likes java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)" Watch "java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)" New topic
Author

java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)

emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

hallo everyone,
im trying to build an applet which sends mail from my site using javamail,
when i run applet on eclipse everything works fine, but when i run it on explorer (not through the server, just opening in explorer my site html), i get this error:

java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)

i checked the java policy file generated by eclipse and it is set to have all permission granted

im not very skilled on applets and dont know whats going on...
...any help???
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Did you put the policy file in the right place for the applet container in your browser to find it?

And no, I can't tell you where the right place is. In practice people rarely use applet policy files because they have to go to all machines where the applet is going to run and install the policy file in exactly the right place. So I wouldn't ever do that. I would just sign the applet instead.
emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

since eclipse place the policy file in the same directory of the class file, i did the same ... but....
what do you mean for "signing the applet"? is there a way to avoid using policy files?

and...last but not least...thanks for the reply
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

emilio rossi wrote:what do you mean for "signing the applet"? is there a way to avoid using policy files?


Might I suggest that "signing applet" would be a good choice for keywords, if you wanted to search the web to find that out?
 
 
subject: java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)
 
It's not a secret anymore!