So when I try to load my applet from my website I get
AccessControlException
access denied ("java.io.FilePermission" "cursor.gif" "read")
This corresponds to the code inside my applet.
//Modify the cursor when inside the Applet
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image cursorIcon = toolkit.getImage("cursor.gif");
Point center = new Point(16, 16);
Cursor cursor = toolkit.createCustomCursor(cursorIcon, center, "Cursor");
setCursor(cursor);
I HAVE googled and tried things such as
- Sign the
.jar
- Create a policy thing, but I didn't completely understand how to make it and what to do with it (Could someone explain to me how to do the policy thing in detail?)
My applet works perfectly fine when I run it in my eclipse Additionally, if I comment out the code above, my applet works, so just that portion is giving me an error.