1.2 KiB
1.2 KiB
Structure
The files are in 3 packages (directories)
- compute: Package contains the interfaces.
Compute.javaandTask.java - eingine: package contains the server class
ComputeEngine.java - client: package contains the client classes
Client.javaandOperation.java
How to run
Each of the following commands are to be run in theit own terminal instance.
i.e. open a new terminal and run the neccessary command.
- First we compile the classeswith the output directory
outso we havesrsfor source code andoutfor class files using the command# this compiles any file in any directory under 'srs' in its oun parent directory under 'out'. javac -d out $(find src -name "*.java") - Then we start the rmiregistry. since I am on linux, we do this as such:
# cd in to 'out' directory cd out # and start rmi registry server in the background rmiregistry & - Start the server with the command
# this command runs the Server class 'ComputEngine' java -cp out engine.ComputeEngine - And finally we start the client with the following command
# command runs the client class Client java -cp out client.Client