This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
emilio rossi
Ranch Hand
Posts: 47
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21581
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21581
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic