File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load image: AccessControlException

Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic