I have created a Server, Client kind of program with RMI. But whenever I run my Server after starting the rmiregistry from command prompt, the port already in use error is t
Try this:
lsof -P | grep ':1099' | awk '{print $2}' | xargs kill -9