RMI ClassNotFoundException

六眼飞鱼酱① 提交于 2019-12-14 03:13:10

问题


I have problem with rmiregistry. I'm getting below error:

Cannot bind to URL [rmi://........]: javax.naming.NamingException [Root exception is java.rmi.UnexpectedException: undeclared checked exception; nested exception is: 
                java.lang.ClassNotFoundException: Could not find class (javax.management.remote.rmi.RMIServerImpl_Stub) at codebase ()]

I checked, class exist in the classpath.

I used java 1.6 on linux. I started rmiregistry 6667. Has anyone met with this error?


回答1:


class exist in the classpath.

In your JVM's classpath. It is also needed on the Registry's classpath, and the client's.



来源:https://stackoverflow.com/questions/7387031/rmi-classnotfoundexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!