From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,33ec2881cc3ecf36,start X-Google-Attributes: gid103376,public From: Geoff Bull Subject: ada < - > java bindings wanted Date: 1999/08/20 Message-ID: <37BD0169.B49F73A5@acenet.com.au>#1/1 X-Deja-AN: 515017137 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 935133721 203.35.118.1 (Fri, 20 Aug 1999 17:22:01 EST) Organization: Customer of Telstra Big Pond Direct MIME-Version: 1.0 NNTP-Posting-Date: Fri, 20 Aug 1999 17:22:01 EST Newsgroups: comp.lang.ada Date: 1999-08-20T00:00:00+00:00 List-Id: > > We need to be able to call java from an ada main routine > (we plan to build the user interface in java), and to have > java call the legacy ada code. We will be using Rational's > ada compiler. We *can* get this to work by having ada call C > which will then call java (using the Java Native Interface); > or java calling C (using the Java Native Interface), which will > then call ada. However, we would very much prefer to call java > directly from ada, and ada from java, in order to avoid the > extra layers of code that would be required. > > Have others been faced with this sort of situation > (ada calling java calling ada), and if so, how did > you solve the problem? A C wrapper around JNI isn't necessary because I have written an Ada wrapper around JNI, called Cafe1815. It is open source with a license intended to be less restrictive than GPL, but if you make improvements I'd like to incorporate them for the benefit of all. You can find Cafe1815 at: http://www.acenet.com.au/~gbull/ Due to work and study pressures, I can only make minor improvements for free. Ofcourse, if you have money to spend ... Cheers Geoff