Works on windows, not on linux..
I have been developing an RMI app on Windows and it worked fine.
The time came to move it to Linux (fedora) and the server failed to register with rmiregistry. I think it is a codebase issue.
I have reduced it to a very simple form to get rid of any complications and it still fails. I have a Remote interface TestInterface, an implementation TestInterfaceImpl and a server as follows:
package mytest;
public class TestServer {
public static void main(String[] args) {
TestInterface r=new TestInterfaceImpl();
Naming.rebind("//localhost/hello",r);
}
}
When run with
-Djava.rmi.codebase=file:///usr/test/
(which is where the class files are) this gets a ClassNotFound thrown by the rmiregistry when trying to find mytest.TestInterface.
However on windows an equivalent construction with codebase=file:///c:/test/ works fine.
Currently I feel I am basing my head against a brick wall...
(p.s. registry, client and server are all running on same machine)
Thanks for any help.

