Article View: borland.public.jbuilder.linux
Article #63Re: Using C++ code in Jbuilder
From: Lori M Olson [TeamB]
Date: Wed, 29 Dec 2004 17:56
Date: Wed, 29 Dec 2004 17:56
37 lines
2229 bytes
2229 bytes
Dave Gardner wrote:
> I have libraries that are only in C. I created a sample shared object but I
> can't make any progress bring the functions into the java.
> I need some clues to get started
>
> Dave Gardner
> AMI Semiconductor
>
>
You need to use JNI. Really you should get a good book on the subject
and read. This book is dated, but is still the one most recommended:
http://www.amazon.com/exec/obidos/tg/detail/-/0201325772/qid=1104342138/sr=8-1/ref=pd_ka_1/104-6825770-6471121?v=glance&s=books&n=507846
If you go to http://java.sun.com and search for JNI, there are a number
of online references/tutorials as well.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<41d2efcc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d2e554@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107590,59d947247f2690c9 X-Google-Attributes: gid107590,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 29 Dec 2004 10:56:30 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.linux Subject: Re: Using C++ code in Jbuilder References: <41d2e554@newsgroups.borland.com> In-Reply-To: <41d2e554@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <41d2efcc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104342988 142.179.181.200 (29 Dec 2004 09:56:28 -0800) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail