This is an example of a stand-alone Java application, which has been
written in NetRexx; when running, it should
look something like this:
You can also download the Pinger package (with the .class files already compiled from the source) in zip format [pinger.zip, 23kB]. The Pinger package is also included in the NetRexx package you may prefer to download the whole package, including the other NetRexx samples and examples.
Please note that the Pinger package is part of the NetRexx package, and is covered by the terms in the IBM License Agreement for that package.
Running the Pinger
Note that the Java runtime (e.g., from the Java Development Kit) must be installed before you can run stand-alone Java applications, and you must also have either the NetRexx runtime or compiler installed, too. See downloading the NetRexx package for more details.
Running the Pinger from the .class files
If you downloaded the package above (pinger.zip), first unpack the files into a directory (see User's Guide for details of the commands to use for unpacking). Then, in that directory, run:
Note that you need the capital letter 'P' as shown, as the java command is case-sensitive.
Compiling and running the Pinger
To compile and run the program, create or copy the 'Pinger.nrx' file (note the first letter is a capital letter), and then enter the commands:
java COM.ibm.netrexx.process.NetRexxC Pinger java Pinger