comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: ada < - > java bindings wanted
Date: 1999/08/13
Date: 1999-08-13T00:00:00+00:00	[thread overview]
Message-ID: <7p1t5i$d2d$1@nnrp1.deja.com> (raw)
In-Reply-To: FGD9E8.M5w@news.boeing.com

In article <FGD9E8.M5w@news.boeing.com>,
  "Constantine A. Sismanidis" <constantine.a.sismanidis@boeing.com>
wrote:
> will be using Rational's ada compiler. We *can* get this to work by
> having ada call C which will then call java (using the Java Native
> Interface); or java calling C (using the Java Native Interface), which
> will then call ada. However, we would very much prefer to call java
> directly from ada, and ada from java, in order to avoid the extra
> layers of code that would be required.

I'm not familiar with that particular compiler (unless it is the VADS
one, which I doubt highly). But if its an Ada 95 compiler, you should be
able to apply a "pragma Export (C, " to all the Ada routines you wish to
call from Java. That will make them look like C routines, which should
make your JNI happy.

There are lots of other little issues in interfacing to other languages
from Ada which are discussed in Annex B of the Ada LRM (a section
obscurely titled: "Interface to Other Languages") Its available online
at http://www.adahome.com/rm95/rm9x-B.html .

There are additional issues if your main routine is not Ada, but I'm
guessing that won't apply here.

--
T.E.D.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  parent reply	other threads:[~1999-08-13  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-12  0:00 ada < - > java bindings wanted Constantine A. Sismanidis
1999-08-12  0:00 ` Stanley R. Allen
1999-08-13  0:00 ` Ted Dennison [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-08-12  0:00 Constantine A. Sismanidis
1999-08-12  0:00 ` Tucker Taft
1999-08-12  0:00   ` Tucker Taft
1999-08-12  0:00 ` Jim White
1999-08-12  0:00 ` David Botton
1999-08-14  0:00 ` Robert Dewar
1999-08-20  0:00 Geoff Bull
1999-08-20  0:00 ` Robert Dewar
1999-08-20  0:00   ` Ted Dennison
1999-08-20  0:00     ` Florian Weimer
1999-08-21  0:00     ` Robert Dewar
1999-08-21  0:00   ` Simon Wright
1999-08-22  0:00     ` Robert Dewar
1999-08-22  0:00   ` Geoff Bull
1999-08-21  0:00     ` Robert Dewar
1999-08-21  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox