aspose file tools*
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
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
Bartender

Joined: Oct 14, 2005
Posts: 18887
    
    8

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
Bartender

Joined: Oct 14, 2005
Posts: 18887
    
    8

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.security.AccessControlException: access denied (java.util.PropertyPermission *read,write)