For this you'd really want JavaCPP, not JNA or JNI which are both meant for C APIs (and JNI is now obsoleted by the new Java FFI which is much easier to use, but again, only for C).