An applet that runs fine in an appletviewer/command line but throw security exceptions in a browser is usually indicative that you need to sign your applet. See How to sign an applet (and get it to...