• 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
Sheriff
Posts: 35977
422
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: 42970
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!