when i tried to register the remote object with rmi registry i got following:
J:\prgs\my>start rmiregistry
J:\prgs\my>java -classpath .. my.Register
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: my.MyServer_Stub
----------------------------------------------------------------------------------
here is the code of Register.java
package my;
import java.rmi.*;
import java.rmi.Naming.*;
public class Register
{
public static void main(String s[])
{
try
{
my.MyServer m=new my.MyServer();
Naming.rebind("mayank",m);
}catch(Exception e)
{
System.out.println(e);
}
}
}