In my self signed java applet, I get following error:

uncaught exception: access denied ( resources/fonts/new_font.TTF read)

resources/fonts/new_font.TTF file is packed inside jar.

I also tried Privileged methods mentioned like below, but I'm still getting the error.

My code after alteration:
new {
public Object run() {
FontFactory.register("resources/fonts/new_font.TTF", "new_font");
return null;

Any help would be appreciated. Thanks.