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-Thread: 103376,f70f5d396358ad88 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: Jerome Hugues Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada code to Java - resources and hints Date: Sun, 20 Mar 2005 10:49:58 +0000 (UTC) Organization: ENST, France Message-ID: References: NNTP-Posting-Host: merlin.enst.fr X-Trace: avanie.enst.fr 1111315798 18116 137.194.160.24 (20 Mar 2005 10:49:58 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 20 Mar 2005 10:49:58 +0000 (UTC) User-Agent: slrn/0.9.7.3 (SunOS) Xref: g2news1.google.com comp.lang.ada:9631 Date: 2005-03-20T10:49:58+00:00 List-Id: In article , Dr. Adrian Wrigley wrote: > Hi Guys! > > I'm looking at doing a project linking a network-based Java client > library to Ada (using GNAT on ia32 Linux). > > So far I haven't found much online info about how to do this :( > > An interesting but old article talks of ADEPT to interface > via Annex E: > http://stsc.hill.af.mil/crossTalk/1997/12/adept.asp > > And a newsgroup posting by Tucker Taft from ten years ago: > http://archive.dstc.edu.au/AU/staff/crawley/ada/ada-java.txt > > What I want to do seems fairly basic, but I'm not sure > where to start! What libraries would I need to link to? > How do I initialize the Java runtime? Is Annex E the way to go? > > Does anyone know of basic tutorials and/or working > code I can plunder to learn how to do this? If you mean you want to build an 'executable' that uses simultaneously Ada and Java source code, then you might review jgnat. Unfortunately, it seems it is no longer supported, but it may provide some basics. I've used it for a project in my school, the goal was to use stubs written by an IDL-to-Java compiler with some Ada code. It was technical, but the project succeeded. Another option might be to use gcj to compile you java code, and then interface it with Ada. I have no idea wether this is easy or not. -- Jerome