JAR tips

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

JAR tips

Mike Cowlishaw-2
By putting it in a sub-directory ('socks'), you've made it part of a package
called 'socks'.  Hence you need:

  package socks

at the start of your program (nosock.nrx).  This is a Java requirement that
ensures that programs are what they are claimed to be.

(For more info, check the PACKAGE instruction in NetRexx documentation, and
also the section on how to use the compiler in NRINST.DOC.  In general, your
source code tree needs to match the eventual package (Jar file) tree, to keep
Java happy.)

- - - - -
Mike Cowlishaw, IBM Fellow, IBM UK Laboratories
mailto:[hidden email]   [http://www2.hursley.ibm.com]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

mcbrides
>By putting it in a sub-directory ('socks'), you've made it part of a package
>called 'socks'.  Hence you need:
>
>  package socks
>
>at the start of your program (nosock.nrx).  This is a Java requirement that
>ensures that programs are what they are claimed to be.
>

Lazy me... Lazy me...

The Package instruction is there, from the previous layout. Changing it to
reflect the correct directory structure cured my ills... :'0

Thanks for reminding me.


--

/-------------------------------------\
| 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>