The NetRexx Tutorial
- Miscellaneous
NetRexx Tutorial - Miscellaneous


Miscellaneous

Introduction

In this chapter I collect all the information that could not fit in the previous chapters.

You might find usefull references to additional documents as well.

Packages and JAR files

Packages

In Java terminology the word "package" means a collection of individual .class files contained in a directory. A package is then a directory and a library, and you use it to group more than one class together.

You then perform the grouping of the source NetRexx files in a directory. And now comes the most important point: the directory name MUST match the package name.

Real example

In this subsection I'll show how I built the first time my xclasses.jar file.

 
  # 1.00 create a directory called "xclasses"
  #      and go into it
  $ mkdir xclasses
  $ cd xclasses

  # 2.00 edit the classes that make the package
  #      ADD a "package xclasses" line at beginning
  #      then compile it with nrc
  $ edit *.nrx
  $ nrc *.nrx

  # 3.00 build the JAR file
  #      FROM THE DIRECTORY ABOVE!
  $ cd ..
  $ jar -cvf /java/lib/xclasses.jar xclasses/*.class

  # 4.00 change the CLASSPATH and add
  #      C:\java\lib\xclasses.jar
  $ export CLASSPATH=$CLASSPATH";C:\java\lib\xclasses.jar"

  # 5.00 test it
  #
  $ cd /spool/test
  $ cat t1.nrx
  import xclasses.
  rc = xexec('ls -l')
  $ nrc t1
  $ java t1
 

Pipes for NetRexx and Java

Ed Tomlinson has ported the VM/CMS Pipes functionality on NetRexx (and Java). You can find all the information at the URL:

 
http://www.cam.org/~tomlins/njpipes.html
 

Additional Informations available on the WEB.

Comments about NetRexx

An article about NetRexx has appeared on the Windows Magazine (Windows Magazine, July 1997, page 156). You can find a copy on:

 
http://www.winmag.com/library/1997/0701/winla114.htm
 

REXX FAQ.

For the REXX FAQ, you should consult the page:

 
http://www.mindspring.com/~dave_martin/RexxFAQ.html
 

or (in its non-frame version)

 
http://www.mindspring.com/~dave_martin/FAQNoFrames.html
 

Regular expressions.

Although I'm not a REGEX fan (since all you can do in a Regular Expression you can do with native NetRexx functions), there are a lot of colleagues who are really REGEX lovers.

So, for pattern matching issues, look at:

 
http://www.win.net/~stevesoft/pat
http://www.java.no/javaBIN/docs/api/sun.misc.Regexp.html
http://www.java.no/javaBIN/docs/api/sun.misc.RegexpPool.html
 

A good set of packages is also available at the Original Reusable Objects, ORO Site:

 
http://www.oroinc.com/downloads/index.html
 

You will find a Java regular expression package (OROMatcher), a Easy to use Perl5 regular expressions in Java package (PerlTools) and a AWK regular expressions for Java (AwkTools).

Summary


File: nr_31.html.

The contents of this WEB page are Copyright © 1997 by Pierantonio Marchesini / ETH Zurich.

Last update was done on 18 May 1998 21:48:06(GMT +2).