File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply Bookmark "AccessControlException" Watch "AccessControlException" New topic
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
    
  78

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
    
    9
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 appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: AccessControlException
 
Similar Threads
help with a sql statement
How adding new row record in table???
problem with actionEvent command
Class Container not found :(
Stack