i tried to close an applet from appletviewer using:
System.exit(0);

it works on win2000,
but in unix machine it produced exception like this

java.security.AccessControlException: access denied (java.lang.RuntimePermission
exitVM)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)

how can i solve this problem?
thank you.