Cannot launch RMI Fibonacci server

后端 未结 2 1357
孤城傲影
孤城傲影 2021-01-28 00:26

I am learning Java RMI and I have created a very simple server that calculates Fibonacci numbers. The server (FibonacciServer) creates an object responsible for calculating the

2条回答
  •  被撕碎了的回忆
    2021-01-28 01:06

    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

提交回复
热议问题