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,517611567e1815f2 X-Google-Attributes: gid103376,public From: lrk@pobox.com (Lance Kibblewhite) Subject: Re: Java momentum slowing ? Date: 1999/05/12 Message-ID: #1/1 X-Deja-AN: 477010215 Content-Transfer-Encoding: 7bit References: <372b0ec7.28153993@news2.ibm.net> <3728E60E.F789FD8@uq.net.au> <373612A6.3752CC19@Botton.com> <7h5ak3$2t8@drn.newsguy.com> <37365163.1AB89036@Botton.com> <7h5n2d$prl@drn.newsguy.com> <3736D161.48A9E77B@Botton.com> <3737AB6D.FACB718C@Botton.com> <7h8lmu$2p8n@drn.newsguy.com> X-Orig-Message-ID: <37398845.1031708448@library.airnews.net> Content-Type: text/plain; charset=us-ascii NNTP-Posting-Time: Wed May 12 08:57:17 1999 Organization: None. NNTP-Proxy-Relay: library2.iadfw.net Mime-Version: 1.0 Abuse-Reports-To: abuse at airmail.net to report improper postings Newsgroups: comp.lang.ada Date: 1999-05-12T00:00:00+00:00 List-Id: bob@nospam wrote: >But to answer your question, yes of course. you use JNI (Java native >interface) to call something not written in Java. It is trivial to do >really. most people do that to call C or C++ code from Java. of course >your application become non-portable as much as it were if all the code >was written in only Java. Perhaps you could clarify this for me with an example. Lets start with something simple. Say I have a routine, in a shared library, written in some other language, that takes a single parameter, say a 32-bit integer passed by reference, as opposed to by value. How exactly does JNI enable me to call that routine.