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: <56EF566E81E8663B.12EEA4C03A4F6995.985E539C8D89B2D1@library-proxy.airnews.net>#1/1 X-Deja-AN: 477166097 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> <3739C39F.E9B46156@Botton.com> X-Orig-Message-ID: <3739f2c2.1058968916@library.airnews.net> Content-Type: text/plain; charset=us-ascii NNTP-Posting-Time: Wed May 12 16:29:56 1999 Organization: None. NNTP-Proxy-Relay: library.airnews.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: David Botton wrote: >You have to first wrap the call in a C (or Ada for that matter) function >that can be called through the JNI interface. I decided just to drop the >issue when bob@nospam came back with JNI since JNI is in native code and it >doesn't answer my question! Meaning there is now way to directly all >anything outside the VM with out first wrapping it in some native code JNI >module. Exactly correct. Thick bindings are needed, and these cannot be written in Java. >David Botton > >Lance Kibblewhite wrote: > >> 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.