Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Java Native Interface JNI Example Using Visual C++ Cl.exe

Share this post!
 Vote this!

The aim of this JNI tutorial is to use the Java Native Interface JNI to call a pure java callback from a native C++ function. It is slightly more complicated that just calling a native function, but will better demonstrate some of the JNI functionality. We will be using the Visual C++ cl.exe without the IDE to compile the C++ DLL that will contain the JNI implementations. Leave any questions or problems as comments and I will endeavour to answer them.

Assumptions
This article assumes that you have a compatible JDK installed. For purposes of this example the the project directory is JNIExample. Also it is assumed that you have VC++ installed and configured. See Problems and Solutions Installing VC++ Express Edition, to install and run vcvars32.bat.  more...

0 comments:

Post a Comment