开发者

Problem running RMI server

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜