I wrote a program for the client side and server side using rmi application. Both of them compiled correctly including the remote interface program. The stub and skeleton are also succesfully created. I started the rmiregistry, and then executed the server side program(which implements the remote interface). The following error message is displayed :

c:\ Programming\RMI, Servlets & JSP Demo\RMIdemos>java AccountServerImpl
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is:
java.lang.ClassNotFoundException: AccountServerImpl_Stub


classpath is also correctly set in the environmental variables. I don't understand where is the problem. please help me out !!!