JNI is a decent way to communicate between the WIn32 World and Javas Virtual Machine for self-written programs. However since DLLs with Java is mostly needed for interfacing third party Libraries a JNI dll wrapper is needed that requires an additional c compiling step.
So to use https://jna.dev.java.net/
Entries (RSS)