Tutorial: Jextract - The Native Library Binding Extraction Tool


The jextract tool parses header files (.h) of native libraries and generates Java code, named bindings, that internally use the Foreign Function and Memory API. With the output of jextract you can directly use a Java model of the native libraries you are interested in. This tutorial will walk you through how to obtain and run the jextract tool as well as on how to use the Java code that it generates.

More at https://dev.java/learn/jvm/tools/complementary/jextract/