DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Help with an error message from a JAPplet?

  1. #1
    Join Date
    Mar 2003
    Posts
    2

    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

  2. #2
    Join Date
    Mar 2003
    Posts
    32
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center