First, you need to run “run rmiregistry” in the java bin folder through the shell / command line (create the CLASSPATH system var in the java class / jar for the project to register in the RMI Register, the RMI Registry must know its classes).
Before you can use LocateRegistry.getRegistry ().
source
share