To start the books example from the command line, you need to have the following services running:
rmidrmid is required for activatable objects, like the
transaction manager.
rmiregistry
The RMI registry
service. The book buyer clients use the RMI registry to locate
one another, and optionally, other services.
A Jini registry service. The book buyer clients can
use Jini Lookup services to locate a transaction manager and a
space.
A Jini service that manages
transactions.
An implementation of JavaSpaces technology. You
will need the name of the JavaSpaces service that the clients
should contact.
For instructions on how to start these services, please refer to:
java<policy-property> <space-name-property> <lookup-group-property>-cp<space-examples-jar-file> <codebase-property> <client-class>>
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp
/files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
com.sun.jini.example.books.Watcher
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp
/files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
com.sun.jini.example.books.BookSeller
java
-Djava.security.policy=/files/jini1_0/example/books/policy.all
-Doutrigger.spacename=JavaSpaces
-Dcom.sun.jini.lookup.groups=public
-cp
/files/jini1_0/lib/space-examples.jar
-Djava.rmi.server.codebase=http://'hostname':8080/space-examples-dl.jar
com.sun.jini.example.books.BookBuyerjava.rmi.UnmarshalException, it
probably means your Jini Lookup service isn't running. If you get a
java.rmi.ConnectException, look at the stack trace to see if the
failure was a result of a call to the Naming.rebind method; if so,
it may mean that the RMI registry is not running.