G
Glenn Robinson
Hello,
I'm using RMI for the first time and I'm having a slight problem.
I've created client and server classes for my application and I can use
these ok on my Windows machine.
If I take the three classes I have over to my Linux machine and try to use
them I get an error:
I/O Error or Bad URL
I start rmiregistry and I can see it's listening on port 1099.
I start my server class and it sits there waiting for an imcoming request
The above error occurs when I run my client code and it tries to execute the
line:
RmtServer server =
(RmtServer) Naming.lookup("rmi://" + host + "/RMIServer");
When I run the client class I pass the name of the host where rmiregistry is
running, I've been using localhost so far.
I've tried recompiling all three classes again and running rmic on the
server class but I get the same error.
Any ideas where I'm going wrong?
I'm using RMI for the first time and I'm having a slight problem.
I've created client and server classes for my application and I can use
these ok on my Windows machine.
If I take the three classes I have over to my Linux machine and try to use
them I get an error:
I/O Error or Bad URL
I start rmiregistry and I can see it's listening on port 1099.
I start my server class and it sits there waiting for an imcoming request
The above error occurs when I run my client code and it tries to execute the
line:
RmtServer server =
(RmtServer) Naming.lookup("rmi://" + host + "/RMIServer");
When I run the client class I pass the name of the host where rmiregistry is
running, I've been using localhost so far.
I've tried recompiling all three classes again and running rmic on the
server class but I get the same error.
Any ideas where I'm going wrong?