stub文件都在service文件夹中,

D:\RMISample\service>java CharServer
Exception in thread "main" java.lang.NoClassDefFoundError: IChatClient
at ChatService_Stub.class$(Unknown Source)
at ChatService_Stub.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at sun.rmi.server.Util.createStub(Util.java:289)
at sun.rmi.server.Util.createProxy(Util.java:140)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:196)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:310)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:252)
at java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:150)
at java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:136)
at ChatService.(ChatService.java:10)
at CharServer.main(CharServer.java:13)