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: 113ae9,ec6f7069644a238f X-Google-Attributes: gid113ae9,public X-Google-Thread: 125171,ec6f7069644a238f X-Google-Attributes: gid125171,public X-Google-Thread: 10a146,ec6f7069644a238f X-Google-Attributes: gid10a146,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: <37B347E5.79CB4EA9@averstar.com>#1/1 X-Deja-AN: 512025610 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <37B34038.966C7384@averstar.com> 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: Tucker Taft wrote: > 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. Oops, I had it backwards. AdaJNI allows you to call Java from Ada95. "Normal" JNI (Java Native Interface) allows you to call compiled code from Java. All you need to do is make sure to pragma Export(C, Your_Ada_Routine, "external_name") which will ensure that Your_Ada_Routine is visible with the given external_name and follows normal "C" calling conventions. You may have to convert your Ada code into a shared-library/DLL, and load the DLL from the Java code. The documentation on JNI and AdaJNI should cover this. > > -- > > 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