Comment

Comment by throwawayninja

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton