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: 103376,c72ce603711bd113 X-Google-Attributes: gid103376,public From: "Dr. Michael Paus" Subject: Re: portable GUI , Ada backend, best design? Date: 1998/01/28 Message-ID: <34CFAB01.A1D0C90D@ifr.luftfahrt.uni-stuttgart.de>#1/1 X-Deja-AN: 320084789 Content-Transfer-Encoding: 7bit References: <885278319.12snx@jvdsys.nextjk.stuyts.nl> To: Frank Petranka Content-Type: text/plain; charset=us-ascii Organization: Comp.Center (RUS), U of Stuttgart, FRG Mime-Version: 1.0 Xcanpos: shelf.01/199802120101!0029734129 Newsgroups: comp.lang.ada Date: 1998-01-28T00:00:00+00:00 List-Id: Frank Petranka wrote: > > There have been some suggestions that a Java GUI be combined with an Ada > back end. Is this possible in a single process? That is, can an Ada > service that has been compiled to object code (not byte code) call a Java > service or vice versa? Yes, the Java Native Interface (JNI) does the trick. You only need an Ada interface to the JNI which is of course defined in C and not in Ada. I've already done some simple examples this way on Linux and did not encounter any serious problems, with the usual exception that having to write such an interface is a lot of work to do. > If so, which laguage must the "main" service be written in? It can be any of the two. The JNI supports both directions. Michael