comp.lang.ada
 help / color / mirror / Atom feed
* ada < - > java bindings wanted
@ 1999-08-12  0:00 Constantine A. Sismanidis
  1999-08-12  0:00 ` Tucker Taft
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Constantine A. Sismanidis @ 1999-08-12  0:00 UTC (permalink / raw)


Good afternoon all,

My apologies in advance for posting this to so many newsgroups, and for
posting what may be blindingly obvious to some.

We are in the process of porting a very large legacy system from UNIX to
Windows NT. Most of the code in this system is written in ada (with a
smattering of C and FORTRAN). The user interface uses the X window System.

We need to be able to call java from an ada main routine (we plan to build
the user interface in java), and to have java call the legacy ada code. We
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.

Have others been faced with this sort of situation (ada calling java calling
ada), and if so, how did you solve the problem?
--
Constantine A. Sismanidis                       Senior Software Engineer
The Boeing Company                                         (703)219-3812
11242 Waples Mill Road, Suite 300                     Fax: (703)219-3813
Fairfax, VA 22030-6075       e-Mail: constantine.a.sismanidis@boeing.com







^ permalink raw reply	[flat|nested] 19+ messages in thread
* ada < - > java bindings wanted
@ 1999-08-12  0:00 Constantine A. Sismanidis
  1999-08-12  0:00 ` Stanley R. Allen
  1999-08-13  0:00 ` Ted Dennison
  0 siblings, 2 replies; 19+ messages in thread
From: Constantine A. Sismanidis @ 1999-08-12  0:00 UTC (permalink / raw)


Good afternoon all,

My apologies in advance for posting this to so many newsgroups, and for
posting what may be blindingly obvious to some.

We are in the process of porting a very large legacy system from UNIX to
Windows NT. Most of the code in this system is written in ada (with a
smattering of C and FORTRAN). The user interface uses the X window System.

We need to be able to call java from an ada main routine (we plan to build
the user interface in java), and to have java call the legacy ada code. We
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.

Have others been faced with this sort of situation (ada calling java calling
ada), and if so, how did you solve the problem?
--
Constantine A. Sismanidis                       Senior Software Engineer
The Boeing Company                                         (703)219-3812
11242 Waples Mill Road, Suite 300                     Fax: (703)219-3813
Fairfax, VA 22030-6075       e-Mail: constantine.a.sismanidis@boeing.com









^ permalink raw reply	[flat|nested] 19+ messages in thread
* ada < - > java bindings wanted
@ 1999-08-20  0:00 Geoff Bull
  1999-08-20  0:00 ` Robert Dewar
  0 siblings, 1 reply; 19+ messages in thread
From: Geoff Bull @ 1999-08-20  0:00 UTC (permalink / raw)


> 
> We need to be able to call java from an ada main routine
> (we plan to build the user interface in java), and to have
> java call the legacy ada code. We 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.
>                      
> Have others been faced with this sort of situation
> (ada calling java calling ada), and if so, how did
> you solve the problem?

A C wrapper around JNI isn't necessary because I have written
an Ada wrapper around JNI, called Cafe1815.

It is open source with a license intended to be less
restrictive than GPL, but if you make improvements I'd
like to incorporate them for the benefit of all.

You can find Cafe1815 at:
http://www.acenet.com.au/~gbull/

Due to work and study pressures, I can only make minor
improvements for free. Ofcourse, if you have money to spend ...

Cheers
Geoff




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~1999-08-22  0:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-12  0:00 ada < - > java bindings wanted 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
  -- strict thread matches above, loose matches on Subject: below --
1999-08-12  0:00 Constantine A. Sismanidis
1999-08-12  0:00 ` Stanley R. Allen
1999-08-13  0:00 ` Ted Dennison
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

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