This example assumes the use of eComStation with Java 1.4.2, Rexx2Nrx v4.0.1,
NetRexx v2.0.5 and Java 1.4.2's JAVA.EXE in C:\PROGRAMS\JAVA142\BIN.



1.0 Setup and checks


1.1 Enter "JAVA -version". This could return:

    JAVA.EXE version "1.1.8"

    This version of Java is capable to execute the final Java result.

1.2 Enter "ECHO %CLASSPATH". This should include both "Rexx2Nrx.jar" and
    "NetRexxC.jar", including full paths. If not, add both *.jar files to the
    CLASSPATH environment variable (case-sensitive).
    
1.3 If your Java v1.4.2 is installed in in C:\PROGRAMS\JAVA142\BIN, enter
    "C:\PROGRAMS\JAVA142\BIN\JAVA -version". This could return:
    
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

    This version of Java is capable to compile the *.nrx and *.class files. 



2.0 Rexx2Nrx, quick&dirty


2.1 Go to the Rexx2Nrx directory

2.2 Try running its "EXTERNALS.BAT" (should fail :-))

2.3 Create a file called "my.cmd" in this Rexx2Nrx-directory, containing the
    following 5 lines:

/* my.cmd */
CALL CharOut '',"What's your name? "
PARSE PULL name 
SAY 'Hello,' name||'!'
EXIT

2.4 Run MY.CMD (test, not required, but it should work)

2.5 Enter "C:\PROGRAMS\JAVA142\BIN\JAVA -ms32M rex_pars my.cmd"

2.6 Enter "C:\PROGRAMS\JAVA142\BIN\JAVA -ms32M rex_type my.cmd"

2.7 Enter "C:\PROGRAMS\JAVA142\BIN\JAVA -ms32M rex_nrx my.cmd"

2.8 Clean-up: delete *.LOG files (optional), delete MY.CMD (optional)

2.9 Move MY.NRX to the NetRexx\bin directory



3.0 NetRexx, quick&dirty


3.1 Go to the NetRexx\bin directory

3.2 Enter:

   C:\PROGRAMS\JAVA142\BIN\JAVA -ms4M COM.ibm.netrexx.process.NetRexxC my

3.3 Clean-up: delete MY.CROSSREF (optional), delete MY.NRX (optional)
   


4.0 The final result


4.1 Enter "JAVA my"



5.0 Done


5.1 Clean-up: delete *.LOG (optional), delete MY.CLASS (optional)

