开发者

Problem running RMI server

开发者 https://www.devze.com 2023-03-09 08:46 出处:网络
I am trying to run a RMI server application. I issue the following command: java exemploRMI.Server and I got the following error:

I am trying to run a RMI server application. I issue the following command: java exemploRMI.Server

and I got the following error:

Problemas no Servidor:
RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotF开发者_StackOverflow社区oundException: exemploRMI.OlaRemoto

How to correct this error?

Problemas no Serivord means "Problems in the server" in Portuguese.


Try this:

java -classpath . exemploRMI.Server

It seems like a classpath issue. Basically, java needs to know where to look for the name of the class you are calling. It doesn't auto assume that the current directory is part of your classpath. Classpath

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号