This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
Consider Paul's rocket mass heater.
subject: load image: AccessControlException
Similar Threads
getImage() open image
how to load image from a subdirectory on server
how to load image from a subdirectory on server
applet file is not working
Help me to load Image in applet