On Wed, 22 Apr 2009 17:18:39 +0100, Martin Packer 
<[email protected]> wrote:

>Could someone point me to a good simple sample of a HLASM JNI method 
being
>called from Java on z/OS? Failing a HLASM one I'd accept some other
>language.

Dear Martin,

As far as I know, the JNI is only towards (or from) C. That being said, it is 
rather easy to call an assembler (or any other language) routine from C.


>
>Pointer to a basic doc also appreciated.

We used "The Java™ Native Interface - Programmer’s Guide and Specification" 
by Sheng Liang ISBN 0-201-32577-2 as a primer.


O, BTW, whatever you do, make sure you release all the references to the 
Java objects you are using in your JNI code. And make sure you do that in 
every possible case, especially when catching exceptions... Very important. 
Use jni:verbose option to track.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to