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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,75dc140d36278665 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-03 10:44:31 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!204.71.34.15!news-out.cwix.com!newsfeed.cwix.com!wn2feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3C828C7D.FAE7111C@mchsi.com> From: Bruce or Tracy Jacobs Reply-To: bruce.tracy@the-jacobs.org X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Calling Java Methods from Ada References: <3C8039A6.6050707@none.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.219.156.93 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1015181070 12.219.156.93 (Sun, 03 Mar 2002 18:44:30 GMT) NNTP-Posting-Date: Sun, 03 Mar 2002 18:44:30 GMT Organization: AT&T Broadband Date: Sun, 03 Mar 2002 18:44:30 GMT Xref: archiver1.google.com comp.lang.ada:20730 Date: 2002-03-03T18:44:30+00:00 List-Id: I second that request. I have need to call Java from Ada *without converting Ada to Java*. Has anyone developed bindings or I/F to make this possible without code conversions? Bruce The Alchemist wrote: > > Hello, > > A group of us are trying to write a Java GUI to interface to some Ada > APIs for a class project. We've spent several weeks trying to get this > to work. We initially started with CORBA, but couldn't get Adabroker > working easily. > We then tried to go with JNI which lets us call Ada functions. However, > we need to register callback functions to the pre-existing Ada APIs (to > receive events coming from existing Ada infrastructure that will then > call Java methods to update GUI components). Our callback functions > would like to call Java code, but this doesn't seem possible with a JNI > connection (JNI needs a reference to a JNIENV that it only gets when > Java calls a JNI method). > Is there any way to call Java methods from Ada? Similar to the JNI method > for calling Ada from Java? Or do you think we will need to go with an > intermediary technology like CORBA or SOAP? > Your help would be greatly appreciated as we have spent many hours trying > to figure this one out. Our project's success depends on it! > > Thank You > > please reply by post and if possible email also to > junkymail50@delete.yahoo.com (delete the word delete)