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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5e3fa264114b41e3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-23 13:05:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C4F2577.DA0597FD@res.raytheon.com> From: richtmp X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Setting up a Java Callback to Ada References: <3C49BE2C.F114478D@earthlink.net> <2870b407.0201202208.23b3374f@posting.google.com> <3C4BB9B2.6080409@worldnet.att.net> <3C4C018B.82781040@earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 23 Jan 2002 16:04:55 -0500 NNTP-Posting-Host: 138.125.220.54 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1011819923 138.125.220.54 (Wed, 23 Jan 2002 16:05:23 EST) NNTP-Posting-Date: Wed, 23 Jan 2002 16:05:23 EST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:19256 Date: 2002-01-23T16:04:55-05:00 List-Id: If somebody would send out an example of Java and Ada together, it would be greatly appreciated. Thanks, Peter Stephen Leake wrote: > "Marc A. Criley" writes: > > > Jim Rogers wrote: > > > > << snip >> > > > > > > > Jim is correct here. As an exercise a couple years ago I did in fact > > have Java call an Ada subprogram via JNI. It worked, but I had to have > > the C wrapper, and also additional (native) C functions to call adainit > > and adafinal. > > But you can export Ada fuctions with convention C, and call adainit > and adafinal from an Ada subprogram; just don't assume adainit has been > called yet in that subprogram!. That's sort of writing in Ada :). > > -- > -- Stephe