File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes load image: AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "load image: AccessControlException" Watch "load image: AccessControlException" New topic

load image: AccessControlException

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I want to load an image from remote website in JApplet. But I got error.

The coding is
image = Toolkit.getDefaultToolkit().getImage("");

The error message is

------------ access denied ( read)
at java.lang.SecurityManager.checkPermission(
at java.lang.SecurityManager.checkRead(
at sun.awt.SunToolkit.getImageFromHash(
at sun.awt.SunToolkit.getImage(
at MyPaintApplet.init(


How could I solve this problem?
I agree. Here's the link:
subject: load image: AccessControlException
It's not a secret anymore!