

how to compile:
H:\COURSES\SOFTENG\PatternProject\SOURCE\PATTERN>javac -d ..\..\public_html client\*.java server\*.java message\*.java

Start Rmi Registry
rmiregistry

Start the Server by:

H:\COURSES\SOFTENG\PatternProject\SOURCE>java -Djava.rmi.server.codebase=file:///h:\courses\softeng\patternproject\public_html\ -Djava.security.policy=mypolicyfile  pattern.server.ServerImpl

output

MessageServer bound in registry


Start the client by:


H:\COURSES\SOFTENG\PatternProject\SOURCE>java -Djava.rmi.server.codebase=file:///h:\courses\softeng\patternproject\public_html\ -Djava.security.policy=mypolicyfile  pattern.client.Tester