NetRexx -- Some Practical Examples

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NetRexx -- Some Practical Examples

Alcock, David
I went to Mike's first NetRexx session at SHARE but missed "NetRexx --
Some Practical Examples".  Is there anyway to get the handout and/or the
code?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

JAR Tips, please

mcbrides
Well, I thought I had this one under my belt. However, I don't.

My class collection is quickly exceding my abilities to remember them all and
I thought I'd organize a master JAR divided up by functions. Here's the basic
layout...

My jar is called MyClasses.zip and it's in the classpath. If I take the jar and
unzip it, it restores the directory tree just fine. A clip from the tree looks
like... socks\xsock.class
             \nosock.class
             \watchsock.class
             \etc.

It's like it should be...

Now, writing some netrexx using socket functions from MyClasses, I first import
them with: import socks.
Doing it this way, exposes all the classes like: MyClasses\sock\*.class

Anyway, compiling my script I get the following compaint and haven't a clue to
clear it up...

Program News.nrx
  === class News ===
    function newsreader(Rexx)
 12 +++ so = nosock(node,'NNTP')
    +++      ^^^^^
    +++ Error: Class 'socks.nosock' found, but its name ('nosock') does not match, so it cannot be used

Compilation of 'News.nrx' failed [one error]
Translate time: 25.7s
    javac time:  0.5s
    Total time: 26.2s

I'll be visiting the NetRexx Archive later on tonight, but if there's a quick
tip...

--

/-------------------------------------\
| Jerry McBride                       |
|                                     |
|                ([hidden email]  |
\-------------------------------------/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: JAR Tips, please

dIon Gillard/Multitask Consulting/AU
My guess is that you've jar'red one level too low.

Your jar file should extract:

        \socks\nosocks.class
        \socks\watcsock.class

etc, i.e. it should *create* a directory called socks, if you unzip it in the MyClasses Directory....

On Mon, 09 Mar 1998 18:40:29 -0500, Jerry McBride wrote:

|   Well, I thought I had this one under my belt. However, I don't.
|  
|   My class collection is quickly exceding my abilities to remember them all and
|   I thought I'd organize a master JAR divided up by functions. Here's the basic
|   layout...
|  
|   My jar is called MyClasses.zip and it's in the classpath. If I take the jar and
|   unzip it, it restores the directory tree just fine. A clip from the tree looks
|   like... socks\xsock.class
|                \nosock.class
|                \watchsock.class
|                \etc.
|  
|   It's like it should be...
|  
|   Now, writing some netrexx using socket functions from MyClasses, I first import
|   them with: import socks.
|   Doing it this way, exposes all the classes like: MyClasses\sock\*.class
|  
|   Anyway, compiling my script I get the following compaint and haven't a clue to
|   clear it up...
|  
|   Program News.nrx
|     === class News ===
|       function newsreader(Rexx)
|    12 +++ so = nosock(node,'NNTP')
|       +++      ^^^^^
|       +++ Error: Class 'socks.nosock' found, but its name ('nosock') does not match, so it cannot be used
|  
|   Compilation of 'News.nrx' failed [one error]
|   Translate time: 25.7s
|       javac time:  0.5s
|       Total time: 26.2s
|  
|   I'll be visiting the NetRexx Archive later on tonight, but if there's a quick
|   tip...
|  
|   --
|  
|   /-------------------------------------\
|   | Jerry McBride                       |
|   |                                     |
|   |                ([hidden email]  |
|   \-------------------------------------/
|  
|   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|   To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
|   [hidden email]
|   with the following message in the body of the note
|   unsubscribe ibm-netrexx <e-mail address>
|  



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>