RMI very basic sample to use RMI as a starting point.
As we dont use packages in this example, we can do in terminal, after found path to: "ServerMain.class" (in target folder)
cd..... (what the heck) java ServerMain
Using packages:
If You for example used: package it.polimi;
- open a Terminal where "classes" is (inside "target")
- ls will show NO item, but is fine
- execute: java it/polimi/ClientMain