🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
2 messages
2 total messages Started by Arun Mon, 13 Jun 2005 16:30
JNI question
#516
Author: Arun
Date: Mon, 13 Jun 2005 16:30
10 lines
1128 bytes
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
Re: JNI question
#517
Author: Alexey N. Solofnenko
Date: Mon, 13 Jun 2005 21:15
25 lines
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/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads