Please follow these steps:
1. Compile the source files for the interface, implementation, client and server classes.
javac Product*.java
2. Run rmic on the implementation class
rmic -v1.2 ProductImpl
3. Start the RMI registry:
start rmiregistry
or under unix
rmiregistry &
4.Start the server:
start java ProductServer
or under unix
java ProductServer &
5. Run the client:
java -Djava.security.policy=client.policy ProductClient
-----The program simply prints-----
I am a Blackwell Toaster. Buy me!
I am a ZapXpress Microwave Oven. Buy me!