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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.124.225 with SMTP id ml1mr61203057pab.31.1435276768858; Thu, 25 Jun 2015 16:59:28 -0700 (PDT) X-Received: by 10.140.82.166 with SMTP id h35mr210495qgd.36.1435276768592; Thu, 25 Jun 2015 16:59:28 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!h15no8682360igd.0!news-out.google.com!4ni2770qgh.1!nntp.google.com!j5no4635qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Jun 2015 16:59:28 -0700 (PDT) In-Reply-To: <89850cb5-039c-4642-837e-2d6d6840e45d@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.250.123.221; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 50.250.123.221 References: <1b802fee-2d06-4549-b332-05a665c84877@googlegroups.com> <1000500111456446106.911920laguest-archeia.com@nntp.aioe.org> <89850cb5-039c-4642-837e-2d6d6840e45d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Non-GPL JNI From: David Botton Injection-Date: Thu, 25 Jun 2015 23:59:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:193787 Date: 2015-06-25T16:59:28-07:00 List-Id: On Thursday, June 25, 2015 at 7:09:13 PM UTC-4, dp wrote: > Does someone have a small example how to do it? > Just a Java function that calls an Ada function and vice-versa. >=20 > I do not need something that build bindings from Java classes. If you are not familiar enough with how to recode the various C examples on= the net directly in Ada, I'd suggest a very simple solution. Write the nee= ded interface code in C and then just call Ada or have Ada call the C. if y= ou are not using an Ada main, make sure to call adainit/adafinal to initial= ize the Ada runtime. David Botton