HelloClient.java
:
javac HelloClient.java HelloApp\*.java
HelloClient.class
in the
project directory.
HelloServer.java
:
javac HelloServer.java HelloApp\*.java
HelloServer.class
and
HelloServant.class
.
tnameserv -ORBInitialPort nameserverport
java HelloServer -ORBInitialHost nameserverhost -ORBInitialPort nameserverport
java HelloClient -ORBInitialHost nameserverhost -ORBInitialPort nameserverport
Hello world!!
Remember to stop both the tnameserv
and the
HelloServer
processes
after the client application returns successfully.