Cannot launch RMI Fibonacci server

大憨熊 提交于 2019-12-02 11:26:46

It's not finding the codebase. The reason is that, as of JDK 7, the java.rmi.server.useCodebaseOnly property is true by default, whereas in prior releases it was false by default.

When property is false then it uses the code base of sever but in true case it ignores it.

http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/enhancements-7.html

Your problem would resolve in lower JDK. ex JDK6

The Registry doesn't have the named class available on its CLASSPATH and/or you haven't set up the codebase correctly, if at all. You don't have to use the codebase feature, but if you do it has to be correct. An easier way out of this may be to start the Registry in the server JVM, via LocateRegistry.createRegistry().

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