I have developed an RMI application with client an server running on the same machine,and it works fine. but when I try to deploy the client remotely(from a different machine), it does not even get to execute. My guess is that when invoke MyremoteInterface c=(MyremoteInterface)myreg.lookup("calculator"); on the client side, it does not recognize MyremoteInterface. When done on the same machine, I do have to import the remote interface in the client package. should I do the same thing remotely? if so how?
No need to guess. Post the exception and stack trace here. Or whatever you're observing that isn't expected.