Did you start the RMI server before you attempted to run the HelloImpl program?
If yes, then try to run the HelloImpl program directly from a command line. Once you get this working correctly, then you can try to learn how to do it within the NetBeans
IDE tool.
If no, then you need to have a RMI server running before attempting to bind objects in the server's registry.
The code you posted is not a RMI server. An RMI server is a separate application that is written already, you do not write the code of the server. You write applications that USE an RMI server for distributed processing.