Click here to download the file compmon.jar (16 KB), and put it in an empty folder.
From a command line shell, set the new directory as the current directory.
Be sure your PATH environment variable includes a directory containing
the JDK programs (such as /usr/bin
).
Type the following command:
jar xf compmon.jarThe subdirectory "computation" will be created, along with some files, both in the current directory and in the "computation" directory. These are the source files.
Type the following command:
sh build.shThe following directories will be created, containg several files:
client
client/computation
server
server/computation
They will contain only the generated ".class" files and the ".gif" icons.
To execute the demo application, type the following command:
sh application.shTo execute the demo applet, type the following command:
sh applet.shTo execute the client/server demo, first you need to start the server on the remote host. Of course, the server process be launched on the same computer where the client process runs. To start the server, type the following command:
sh startserver.shWhen the server is started, both the application and the applet can communicate with it, using the name of the host that is running the server process. The next page shows how to use the demo.
![]() |
![]() |
![]() |