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: 10a146,ec6f7069644a238f X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,ec6f7069644a238f X-Google-Attributes: gid113ae9,public X-Google-Thread: 103376,ec6f7069644a238f X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: ada < - > java bindings wanted Date: 1999/08/12 Message-ID: <37B34038.966C7384@averstar.com>#1/1 X-Deja-AN: 512015055 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: To: "Constantine A. Sismanidis" Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: boeing.comp.java,comp.lang.ada,comp.lang.java.help,comp.lang.java.programmer Date: 1999-08-12T00:00:00+00:00 List-Id: Constantine A. Sismanidis wrote: >... > 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. I suggest you check with http://www.ainslie-software.com. They have a very nice tool called AdaJNI which I believe will give you the ability to call Ada from Java, and perhaps vice-versa. Note also that you can generally make Ada code "look" like C code by applying a pragma Convention(C, xxx) to the Ada code, which should simplify interfacing. > > Have others been faced with this sort of situation (ada calling java calling > ada), and if so, how did you solve the problem? The other choice is to recompile your entire Ada source into Java byte codes. However, that will definitely reduce performance of the Ada code to some degree. See http://www.appletmagic.com for information on that. > -- > Constantine A. Sismanidis Senior Software Engineer > The Boeing Company (703)219-3812 > 11242 Waples Mill Road, Suite 300 Fax: (703)219-3813 > Fairfax, VA 22030-6075 e-Mail: constantine.a.sismanidis@boeing.com -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA