Why Does Simple RMI Server Need Codebase?
OS: Windows 7 JDK: 1.8.0_05 I am working through some simple RMI tutorials including Oracle's "Compute" sample ( compute ). Starting my server should not require a codebase, and answers to questions similar to this one say that "the codebase is optional." Yet my server can't register a remote object unless its interface is in some codebase. I make sure my Compute interface is available to the web server running on localhost, start the registry server like this: set CLASSPATH= rmiregistry -J-Djava.rmi.server.codebase="http://localhost:80/" And everything works fine: Exporting stub Locating