NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)

x.printStackTrace();
System.exit(-1);
}
}
}
4. Copy all the files to the directory ./rmi1/.
5. Compile the server implementation class:
javac -d . rmi1/RemImpl.java
6. Generate stub and skeleton classes:
rmic -d . rmi1.RemImpl
7. Compile the client program:
javac -d . rmi1/OpTest.java
8. Start the registry program:
rmiregistry
9. Start the server object:
java -DLOCATION=server rmi1.RemImpl
10. Run the client program:
java -DLOCATION=client rmi1.OpTest
Note: The minimum files required for starting a client on another host are:
rmi1/OpTest.class
rmi1/RemOp.class
rmi1/RemImpl_Stub.class
Return to top of Execution Scenarios.
Contents | Index | Glossary | Prev | Next
NonStop
TM
Server for Java
TM
Programmer's Guide (426947-001)
Copyright © 2001, Compaq Computer Corporation. All rights reserved.