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: David Botton Subject: Re: Java momentum slowing ? Date: 1999/05/12 Message-ID: <3739C39F.E9B46156@Botton.com>#1/1 X-Deja-AN: 477095934 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-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news1.iquest.net 926532344 204.180.46.127 (Wed, 12 May 1999 13:05:44 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Wed, 12 May 1999 13:05:44 EDT Newsgroups: comp.lang.ada Date: 1999-05-12T00:00:00+00:00 List-Id: 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. 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.