Do you need an HTTP server to use RMI?

Govind Seshadri

Technically, you don't need an HTTP server to use RMI. You can always place the stub classes for the remote objects, along with any user-defined classes, within the client's CLASSPATH. But such a deployment is highly inflexible, and feasible only for the more simple implementations.

In most real-life RMI deployment scenarios, the client retrieves all the classes dynamically via the HTTP protocol, by interacting with an web server running on the same host as the remote server objects.

You can also make use of a simple HTTP "class server" implementation provided free by Sun, exclusively for use with RMI. The class-server can be downloaded at: