有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

eclipse中的jakarta ee Java RMI问题

我遇到了这个错误,我尝试了所有可能的方法,但是我无法解决这个问题,请帮助解决这个问题

我正在使用Eclipse indigo IDE

cmd开始rmiregistry

Exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: RMISIntf
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: RMISIntf
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:419)


共 (1) 个答案

  1. # 1 楼答案

    注册表没有在其类路径上的ClassNotFoundException中命名的类。解决和其他几个RMI问题的最简单的解决方案是在服务器JVM中启动注册表,使用LocateRegistry.createRegistry().