• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AccessControlException

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Dear sir in the above code it is throwing an exception as follow

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)

why i would like to know this althogh the same program i m using without applet then it is working fine.

with regard
Arun kumar maalik

[edited to add code tags]
[ July 16, 2006: Message edited by: Jeanne Boyarsky ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Applets forum.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're trying to access a local resource (i.e., the database sitting on the local machine). Applets are not allowed to do that for security reasons - that's the so-called "applet sandbox". See this wiki page for ways around that restriction.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic