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: 125171,ec6f7069644a238f X-Google-Attributes: gid125171,public X-Google-Thread: 103376,ec6f7069644a238f X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,ec6f7069644a238f X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,ec6f7069644a238f X-Google-Attributes: gid113ae9,public From: "David Botton" Subject: Re: ada < - > java bindings wanted Date: 1999/08/12 Message-ID: <7p03ta$14fa$1@news.gate.net>#1/1 X-Deja-AN: 512115190 References: X-Mimeole: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Complaints-To: abuse@gate.net X-Trace: news.gate.net 934515434 37354 199.227.189.86 (13 Aug 1999 03:37:14 GMT) Organization: CyberGate, Inc. NNTP-Posting-Date: 13 Aug 1999 03:37:14 GMT Newsgroups: boeing.comp.java,comp.lang.ada,comp.lang.java.help,comp.lang.java.programmer Date: 1999-08-13T03:37:14+00:00 List-Id: Since you are planning on running on Win32, an easy solution is to put the legacy Ada code in to an Ada coded COM object (see http://www.adapower.com/com and contact ACT for more information on getting support for COM with Ada) and then run JActiveX on the COM object to produce a java binding that works in Win32 with Microsoft's native Java support. The advantage to this is that you can also distribute the Ada code on multiple machines if you like. It would also be possible to do the reverse and call your Java code from Ada by turning your Java code in to COM objects (very easy to do) and calling it from Ada. David Botton Constantine A. Sismanidis wrote in message ... >We are in the process of porting a very large legacy system from UNIX to >Windows NT. Most of the code in this system is written in ada (with a >smattering of C and FORTRAN). The user interface uses the X window System. > >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.