how to Override default policy file so that applet can execute

I have developed a signed applet that works fine when run from the console using this command

C:\Documents and Settings\aneez_backer>appletviewer -J-Djava.security.policy=policy.jp SignedApplet.html

where

policy.jp : is the policy file

SignedApplet.html : is the file that contains the call to the applet

now when I run this html file through webbrowser it gives AccessControlExceptions.

Please tell me how should I override the default security policy files of java so that I can run my applet in the browser also.

[561 byte] By [aneez_backera] at [2007-10-3 0:30:39]
# 1

[java.home]/lib/security/java.policy

would be the default policy, you can edit this policy. Make a copy of it before

you edit this.

Or sign the applet and let the client using your applet deside to trust it

or not.

Signing applets:

http://forum.java.sun.com/thread.jsp?forum=63&thread=524815

second post and reply 18 for the java class file using doprivileged

harmmeijera at 2007-7-14 17:23:45 > top of Java-index,Security,Signed Applets...