• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 47
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic