Jextract mechanically generates Java bindings from native library headers. It is part of the OpenJDK Code Tools project and targets the Foreign Function and Memory API.
sdk install jextract