(a)
java -jar <jinidir>/jini1_0/lib/tools.jar -port 8080 -dir <jinidir>/jini1_0/lib &
(b)
rmid &
(c)
rmiregistry &
(d)
java -jar -Djava.security.policy=<jinidir>/jini1_0/example/ lookup/policy.all <jinidir>/jini1_0/lib/reggie.jar http://<host>:8080/reggie-dl.jar <jinidir>/jini1_0/example/lookup/policy.all /tmp/reggie_log
(e)
java -cp .:<jinidir>/jini1_0/lib/sun-util.jar: <jinidir>/jini1_0/lib/reggie.jar: <jinidir>/jini1_0/lib/mahalo.jar:<jinidir>/jini1_0/lib/jini.jar -Djava.rmi.server.codebase=http://<host>/<srcdir>/ PrintService/ -Djava.security.policy= <srcdir>/PrintService/po.policy Print
(f)
java -cp .:<jinidir>/jini1_0/lib/sun-util.jar: <jinidir>/jini1_0/lib/reggie.jar: <jinidir>/jini1_0/lib/mahalo.jar:<jinidir>/ jini1_0/lib/jini.jar -Djava.rmi.server.codebase= http://<host>/<srcdir>/PrintService -Djava.security.policy=<srcdir>/PrintService/ po.policy JiniPrintProxy
(g)
java -cp .JiniPrintClient
Example 1: Starting the Jini lookup service. (a) Starting the Jini HTTP web server; (b) starting the RMI daemon; (c) starting the RMI registry; (d) starting the Jini lookup service; (e) starting the Jini service; (f) starting the Jini proxy; (g) starting the Jini client.
Copyright © 1999, Dr. Dobb's Journal