Can anybody tell me how to successfully grant my applet read permission so it can read graphics files. I`ve read many a tutorial from sun, looked at many webpages but for the life of me I cannot get my applet up and running.
do you write a program for the Sun-Plugin specificly (JRE >= 1.2) or for Java 1.1.x? In the first case, you have to a) sign your applet, b) include a SecurityManager into your Code. The 2nd case is more complicated, because M$VM and Sun VM (and probably Symantec VM of Netscape 4) use different Security mechanisms.
a) I found these lines on the web and don't know, how they work, but they work.
b) Include this into any class. Before you do your local file access, call isPrivileged(). This method returns true, if the user granted file access (that means, he accepted the applet's certificate).