
CISC 370 Lecture Notes for Class No. 23 May 2, 2000
| Course Home | Prev Lect | Next Lect | Example Progs | Exercise Solns | CoreJava Progs Documentation |
Gen'l Docs | Java 2 APIs | Java Glossary | Term Proj Info |
None
Important: kill all processes running in the background, especially the rmiregistry.
ProductServer.class
ProductImpl.class
Product.class
ProductImpl_Stub.class
Create the download directory as a subdirectory of your
public_html directory on the web server udel.edu
and put the following files in
it.
ProductImpl_Stub.class
Product.class
Create the client directory and put the following files
in it.
ProductClient.class
Product.class
client.policy
The client.policy file should contain
grant
{ permission java.net.SocketPermission
"*:1024-65535", "connect,accept";
permission java.net.SocketPermission
"udel.edu:80", "connect";
};
tcsh // Start a new shell
cd // change to your top level directory
ls *.class // Verify that there are no .class files
unsetenv CLASSPATH // To unset the CLASSPATH
rmiregistry 13772 & // To start registry in background
tcsh // To start a new shell
cd server // Change to the server directory
java -classpath . -Djava.rmi.server.codebase="udel.edu/~caviness/download/" ProductServer &
cd client // Change to client directory
java -classpath . -Djava.security.policy=client.policy ProductClient
Back to the
CISC 370 homepage.
This page has been accessed
times since 1 May 2000.
Corrections, suggestions and comments to Bob Caviness
Copyright
2000 B. F. Caviness