JNI => "I write C code & after compilation java can access it as com.package.ClassName"
JNA => "I write java code & load libsomething at runtime, asking for FuncName(int, int) which java can then call into native code."
You want JNA for your use case.