CORBA: Java's servertool does not allow me to register a server class

99封情书 提交于 2019-12-06 08:46:14

Well I am not sure why things have started to work but...

From the "bin" folder (that which contains the .class files) I have run:

%JAVA_HOME%\bin\orbd -ORBInitialPort 1050

Then opened a new cmd shell (from the same location) - since the previous one is running the orbd and have run:

%JAVA_HOME%\bin\servertool -ORBInitialPort 1050

Both:

register -server HelloServer -classpath . -applicationName HelloServerApName

and

register -server HelloServer -classpath .

work

Does HelloServer know where (port and machine name) to find the Naming Service?

If not, this link might help: orbd - The Object Request Broker Daemon (ORBD).

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