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,280ffdf00642a87c X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: mixing Java byte code created from Ada95 and Java byte code Date: 1997/09/22 Message-ID: #1/1 X-Deja-AN: 274642508 Sender: news@inmet.camb.inmet.com (USENET news) References: <3.0.32.19970917193350.00955db0@iu.net> X-Nntp-Posting-Host: houdini.camb.inmet.com Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-09-22T00:00:00+00:00 List-Id: Sam Harbaugh, Palm Bay, Florida (harbaugh@IU.NET) wrote: : Is it possible to put compiled Java classes created by a Java compiler from : Java source code into the Ada95 library and then "with" them when compiling : an Ada unit and then link them together to get a valid executable file? Essentially. We include a tool "java2ada" with our AppletMagic(tm) Ada=>Java-byte-code compiler which will generate an Ada package spec given a java byte-code ".class" file. You then "register" this package spec (using our "adareg" tool) and you can now call any of the public methods, and reference andy of the public fields, of the Java class, from Ada. See "www.appletmagic.com" or "www.inmet.com/javadir/download" : I think that what I'm asking is : 1) Does some brand(s) of Ada95 compiler know how to handle the withing of a : library unit compiled by a Java compiler?" Yes, AppletMagic (and the Ada=>Java component of ObjectAda), via the "java2ada" tool. : 2) "Does some brand(s) of Ada95 linker know how to link Java things created : by an Ada95 compiler to Java things created by a Java compiler?" Yes, the above compilers generate Java byte codes, and so they dynamically link to byte-codes compiled by a Java compiler. : Thanks. : sam harbaugh : p.s. I think that no Ada95 compilation system handles this but that it is : theoretically possible. -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA