I have written RMI java code and started the RMI server manually, but when i run the program it brings an error of class not found, what am i missing: Error: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: rmi3.Hello * the class is available
0
votes
1 Answers
1
votes
If you look at the stack trace you will find out whether the exception is being thrown:
On export, which means the class isn't available on the server JVM's CLASSPATH
When binding, which means it isn't available on the RMI Registry's CLASSPATH.
When looking up, which means it isn't available on the client's CLASSPATH.
Object
you are sending over RMI available in the classpath of your project? – Boris the Spider