是不是还少了个CompanyImpl_Skel.class

解决方案 »

  1.   

    1.D:\Yzb\Tomcat5.0\webapps\lxy\RMIServer>start rmiregistry
      

  2.   

    你是不是没有用rmic生成stub呀,或是生成了没有放到路径下面去,你这样使用命令,那么必须在和你的rmiregistry.exe同一层
      

  3.   

    你们说的stub,skel我都有,还是不行
      

  4.   

    给你一个我学习的例子
    http://210.35.247.38/jeff/Other/rmiTest.rar
      

  5.   

    我给你的例子绝对能正常运行,compile.bat -> server.bat -> client.bat这样都不行那就没办法了.
      

  6.   

    我也是下载了这个例子 我解压后就按照compile.bat -> server.bat -> client.bat直接运行了,然后出来这种错误,是不是什么地方需要配置呀?高手指点。
    java.rmi.NotBoundException: RMILightBulbjava.rmi.ServerException: Server RemoteException; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.lang.ClassNotFoundException: rmi.RMILightBulbImpl_Stub
      

  7.   

    同意玉面飞狐在rmi包目录下运行rmiregistry,即:
    D:\Yzb\Tomcat5.0\webapps\lxy\RMIServer>start rmiregistry