質問

I have written java programs for Client and Server. But, to run the program I need to start rmi registry manually! How to start RMI registry through java code (through Server)?

役に立ちましたか?

解決

Use LocateRegistry.createRegistry(port). See javadoc.

他のヒント

First, you need execute in java bin folder "start rmiregistry" throught shell/command line (create CLASSPATH system var to java class/jar to the project to register in RMI Register, RMI Registry need know their classes).

Before you can use LocateRegistry.getRegistry().

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top