2 cainianxianfei cainianxianfei 于 2014.09.03 13:08 提问

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)

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!