上QQ阅读APP看书,第一时间看更新
Building the client classes
Once the interfaces and server classes are compiled, build the client implementation class that will communicate an implementation of the Calculate interface with the server class:
- For Microsoft Windows:
cd C:DistributedComputingWorkspacesrc
javac -cp C:DistributedComputingWorkspacesrccalculate.jar
localCalculateClient.java
mkdir C:DistributedComputingWorkspaceclasses
cp localCalculateClient.class
C:DistributedComputingWorkspaceclasses
- For Solaris OS or Linux:
cd /home/distributedcomputing/workspace/src
javac -cp /home/distributedcomputing/workspace/src/calculate.jar
local/CalculateClient.java
mkdir /home/distributedcomputing/workspace/classes
cp local/CalculateClient.class
/home/distributedcomputing/workspace/classes