I have a problem using java rmi:
When I\'m trying to run my server, I get a connectException (see below).
Exception happens when executing the rebind method:
it seems that you should set your command as an String[],for example:
String[]
String[] command = new String[]{"rmiregistry","2020"}; Runtime.getRuntime().exec(command);
it just like the style of main(String[] args).
main(String[] args)