RMI: Programmer's Checklist

Source

The interface

The server (implementation of the interface)

The client

Compiling

Running

For example, the command below runs a Java application called Application. In this case, the system expects the policy file called policy to be in the directory from which the java command executes. I need class files in my public_html/classes directory to be readable by all. The classes directory needs to be readable and executable by all. The trailing slash on the codebase specification is crucial.

Runtime Exceptions

java.io.NotSerializableException
The object in question does not implement java.io.Serializable
java.security.AccessControlException: access denied
The JVM may not have access to a policy file, either because it is missing or unreadable, or the specification of where it is (on the command line) is incorrect.