![]() |
Hello World application |
This example is really very simple indeed (also available as a plain ASCII file):
/* This is a fully documented NetRexx program */ say 'Hello World!'
The first line is a comment, which isn't really needed. The second line is a NetRexx instruction called SAY, which takes an expression (here just a constant string) and displays it.
To run the program, you'd create a plain text file containing the two lines above (or just the second line) in your current directory, and then enter the command:
java COM.ibm.netrexx.process.NetRexxC hello
This would:
You can then run the program using the command:
java helloThis calls the Java interpreter (java) to interpret the class file, which should then display "Hello World!".
Note that the Java runtime (e.g., from the Java Development Kit) must be installed.
If you have the netrexxc command script available, you can compile and run the sample using just:
netrexxc -run hello
[ NetRexx | IBM home page | Search | Contact IBM | Help | Legal | Privacy ]
This page was created on 27 Nov 1997; it can be found from http://www2.hursley.ibm.com/netrexx/