Distributed Computing in Java 9
上QQ阅读APP看书,第一时间看更新

Building a JAR file from the interface classes

The first step is to compile the remote interface components and build a JAR file using it. Note that we have provided the commands for both Microsoft Windows and Solaris or Linux in the following sections:

  • For Microsoft Windows:
     cd C:DistributedComputingWorkspacesrc
javac C:DistributedComputingWorkspacesrc*.java
jar cvf calculate.jar
C:DistributedComputingWorkspaceclasses*.class
  • For Solaris OS or Linux:
    cd /home/distributedcomputing/workspace/src
javac /home/distributedcomputing/workspace/src/*.java
jar cvf calculate.jar
/home/distributedcomputing/workspace/classes/*.class