I’m writing an rmi application. Everything works perfectly fine when i put the all classes in one directory. However, when i try to split the server part and the client part, it raises java.lang.ClassNotFoundException.myclasses
It seems to be the Registry can’t find that class on its CLASSPATH. I’m wondering how to I solve this problem?
I’m writing an rmi application. Everything works perfectly fine when i put the all
Share
Are you specifying the classpath directories in the arguments to both the client and server?
From the Tutorial:
Server
http://java.sun.com/javase/6/docs/technotes/guides/rmi/hello/hello-world.html#5