Cannot launch RMI Fibonacci server

后端 未结 2 1361
孤城傲影
孤城傲影 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:13

    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().

提交回复
热议问题