Also, keep in mind that JNI doesn't support passing objects, just primitives.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] Behalf Of Craddock, Chris Sent: Monday, August 07, 2006 5:09 PM To: [email protected] Subject: Re: Java calls old COBOL > The current manuals and IBM Red Books only talk about the OO style COBOL > with Java. We need to know how to call our old existing COBOL routines > from Java. Warning, I have never done this and I don't speak COBOL, but... You need to make a JNI call from the IBM Java environment into a compiled program running in an LE-conforming environment. COBOL is (in theory) exactly that. All of the examples are probably C, but any language supported by LE ought to work. You might need to write a C stub to line up the parameters for your COBOL code and make the call to the COBOL subroutines from there. I don't think its likely to be brain surgery. CC ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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

