Article View: borland.public.jbuilder.java.language
Article #517Re: JNI question
From: Alexey N. Solofnenko
Date: Mon, 13 Jun 2005 21:15
Date: Mon, 13 Jun 2005 21:15
25 lines
1837 bytes
1837 bytes
I would start with reading JNI documentation. In general, you will need
to create a Java class with "native" methods, run javah to generate C++
headers, implement generated methods using APIs provided by the library,
compile the sources to generate DLL, and finally update your Java class
to load the native DLL in static constructor.
- Alexey.
Arun wrote:
> Hi,
>
> I purchased (at work) a CCD Camera and the software distribution contains
> C++ examples. These examples use .lib and .h files. However, I need to
> program in Java and collect images and later use JAI to analyze them. So my
> first question is can I use JNI and the .lib or I have to have .DLL to work
> with JNI?
>
> Regards
> Arun
>
>
--
Alexey N. Solofnenko {trelony at gmail.com}
home: http://trelony.cjb.net/
Technical Details
Message-ID:
<42adf777@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42adb3a6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,88395639d812afeb X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 13 Jun 2005 14:15:32 -0700 From: "Alexey N. Solofnenko" <alexeys@inventigo.com> User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050611) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: JNI question References: <42adb3a6@newsgroups.borland.com> In-Reply-To: <42adb3a6@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.200.221.5 Message-ID: <42adf777@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118697335 208.200.221.5 (13 Jun 2005 14:15:35 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail