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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113ae9,ec6f7069644a238f X-Google-Attributes: gid113ae9,public X-Google-Thread: 103376,ec6f7069644a238f X-Google-Attributes: gid103376,public X-Google-Thread: 125171,ec6f7069644a238f X-Google-Attributes: gid125171,public X-Google-Thread: 10a146,ec6f7069644a238f X-Google-Attributes: gid10a146,public From: Ted Dennison Subject: Re: ada < - > java bindings wanted Date: 1999/08/13 Message-ID: <7p1t5i$d2d$1@nnrp1.deja.com>#1/1 X-Deja-AN: 512359387 References: X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Aug 13 19:54:32 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: boeing.comp.java,comp.lang.ada,comp.lang.java.help,comp.lang.java.programmer X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-08-13T00:00:00+00:00 List-Id: In article , "Constantine A. Sismanidis" wrote: > 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. I'm not familiar with that particular compiler (unless it is the VADS one, which I doubt highly). But if its an Ada 95 compiler, you should be able to apply a "pragma Export (C, " to all the Ada routines you wish to call from Java. That will make them look like C routines, which should make your JNI happy. There are lots of other little issues in interfacing to other languages from Ada which are discussed in Annex B of the Ada LRM (a section obscurely titled: "Interface to Other Languages") Its available online at http://www.adahome.com/rm95/rm9x-B.html . There are additional issues if your main routine is not Ada, but I'm guessing that won't apply here. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.