1. Create a new security policy file. See your JDK docs or the links referenced from the Sun RMI tutorial for more information on this.
Sun RMI tutorial
http://java.sun.com/produc
2. When you run the client or the server, pass the location of your new security policy file in as an argument. This allows you to run under a new policy without having to modify your system policy files. Below is a .policy file that grants all permissions to everybody. DO NOT install this policy file in a production system. However, you can use it in trivial testing. You can then run the server with the command line
java -Djava.security.policy=<po
or the client with
java -Djava.security.policy==<p
Main Topics
Browse All Topics





by: Venci75Posted on 2002-03-15 at 00:21:25ID: 6867549
Are you using applet?