Server Smalltalk Guide

Changing the security for JDK 1.2

For Java 1.2, the Java security manager must grant access to the ports that RMI uses. Otherwise, when you try to bind a remote object to the RMI Registry, an error is returned. An example java.policy file is as follows:

grant {
	     permission java.net.SocketPermission "*:1024-65535",
		       "connect,accept";
	     permission java.net.SocketPermission "*:80",
		       "connect";
	     permission java.lang.RuntimePermission "accessDeclaredMembers";
	     };
 

Start Java with the --D option as follows:

java -Djava.security.policy=java.policy <my.class.with.Main()>

For more information, see http://java.sun.com/docs/books/tutorial/rmi/running.html


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]