NetRexx User's Guide, version 2.02
Copyright (c) IBM Corporation, 2001. All rights reserved. © | Draft of 22 May 2001 |
[previous | contents | next] |
To test your installation, make the directory to which you copied the executables the current directory, then (being very careful to get the case of letters correct):
java COM.ibm.netrexx.process.NetRexxC helloThis should run the NetRexx compiler, which first translates the NetRexx program hello.nrx to the Java program hello.java. It then invokes the default Java compiler (javac), to compile the file hello.java to make the binary class file hello.class. The intermediate .java file is then deleted, unless an error occurred or you asked for it to be kept.[1]
java helloThis runs (interprets the bytecodes in) the hello.class file, which should display a simple greeting. On some systems, you may first have to add the directory that contains the hello.class file to the CLASSPATH setting so Java can find it.
NetRexxC.sh -run helloThis package also includes a trivial nrc.cmd, and matching nrc.bat and nrc scripts, which simply pass on their arguments to NetRexxC; nrc is just a shorter name that saves keystrokes, so for the last example you could type:
nrc -run helloNote that scripts may be case-sensitive, and unless running the OS/2 Rexx script, you will probably have to spell the name of the program exactly as it appears in the filename. Also, to use -run, you may need to omit the .nrx extension.
[1] | For example, by specifying the -keep or -nocompile flags. |