Java Glue Code: JNI
Wrapping a C++ library with JNI
-
Introduction outlining the general steps from starting with a C++ library to being able to build and run simple tests on some JNI wrappers;
-
Part 1 in which I design some simple Java classes and generate the stub wrapper code;
-
Part 2 in which I add just enough of the implementation to be able to do a test build;
-
Part 3 discussing object lifecycles in C++ and Java;
-
Part 4 the final episode covering a few remaining points of interest.