• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access denied & policy file

 
afzan zaidi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i got a error
"Caught exception java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)" when running applet in browser. But it is ok when used appetviewer.
why?? and how to use policy file in applet? I mean not using
appletviewer -J-Djava.security.policy=<policyfilename>.
Thank you.
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the appletviewer doesn't have the strict sandbox rules that browsers do. Check out some of my other recent posts about why applets are better off not using jdbc directly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic