-
Help with an error message from a JAPplet?
I received this error when accessing an image online in a JApplet. I don't have a clue where I need to fix it. Thanks for any help.
java.lang.ExceptionInInitializerError
at Board.<init>(Board.java:6)
at VP.init(VP.java:17)
at sun.applet.AppletPanel.run(AppletPanel.java:347)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission Images/2c.jpg read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:486)
at sun.awt.SunToolkit.getImage(SunToolkit.java:500)
at javax.swing.ImageIcon.<init>(ImageIcon.java:81)
at javax.swing.ImageIcon.<init>(ImageIcon.java:107)
at Deck.<clinit>(Deck.java:4)
... 4 more
Exception: java.lang.ExceptionInInitializerError
-
The image is online you say? Well, there are a lot of error messages there which are security related. Make sure that you have permission to read the image from the webserver. Try copying the image offline and trying it from there, if it works then I'm not sure... try making a geocities account and running the applet from there, because you'll have permission to read the file. Good luck!
- Master Of Souls
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|