Author
AccessControlException
Arun Maalik
Ranch Hand
Joined: Oct 25, 2005
Posts: 216
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26489
Moving to our Applets forum.
[Blog ] [JavaRanch FAQ ] [How To Ask Questions The Smart Way ] [Book Promos ]
Blogging on Certs: SCEA Part 1 , Part 2 & 3 , Core Spring 3 , OCAJP , OCPJP beta , TOGAF part 1 and part 2
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
posted Jul 16, 2006 13:07:00
0
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.
Android apps – ImageJ plugins – Java web charts
subject: AccessControlException