This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AccessControlException  RSS feed

 
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: 37230
519
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: 42972
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
Boost this thread!