I do tutorial in following link: Java RMI Tutorial
After I compile successfully three files (interface, server and client) by hand, appear three classes in same folder. Then, I do like what tutorial say:
1) Start RMI server: start rmiregistry a new blank dos screen appear (maybe server is running, right ? )
2) Start server: start java -classpath classDir example.hello.Server: a flash dos screen appear (it so fast that I cannot see what they said !!!). But, at that site, they say, in command prompt will ouput Server ready. But, I don’t see (something wrong ?)
3) Start Client: java -classpath classDir example.hello.Client: a long list of parameters appear like I missing something, but it doesn’t say what I’m missing.
Please help me run this example.
Thanks 🙂
Edit: here is notice (if I run server and client without start command)

When the tutorial says that you should run your server with
It (erronously in this case) assumes you know you should replace
classDirwith your actual classpath. The command should look something more like this:Assuming that all your classes are rooted relative to the directory you are running your commands from. As it is, you are omitting the classpath altogether, which causes the JVM to gobble your classname and interpret it as the classpath instead:
If you do not know how to determine and set your classpath then I will definitely recommend you start with more basic tutorials, instead of jumping straight into RMI.