问题描述
|
我正在尝试运行RMI服务器应用程序。我发出以下命令:
java exemploRMI.Server
我收到以下错误:
Problemas no Servidor:
remoteexception occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.classNotFoundException: exemploRMI.OlaRemoto
如何更正此错误?
问题是没有Serivord在葡萄牙语中表示\“服务器中的问题\”。
解决方法
尝试这个:
java -classpath . exemploRMI.Server
似乎是类路径问题。基本上,java需要知道在哪里查找要调用的类的名称。它不会自动假定当前目录是您的类路径的一部分。类路径