Up | Previous | Next |
Then invoke the rmi compiler on the two classes:
javac *.java
Then start the server:
rmic -classpath . NetworkServer NetworkClient
And we start creating clients, one at a time:
java -Djava.security.policy=java.policy NetworkServer 18267
Then we obtain the same thing:
java NetworkClient 127.0.0.1 18267 Larry
When we discuss the structure we should emphasize the approach here is a bit different.
So we don't promote one style only; we demonstrate a variety of approaches.
One should use what one finds most convenient; we think the reader can come up with own aproaches too.
Up | Previous | Next |