Latest articles
2 articles in the current browsing window, ordered by publication date.
This article compares JNI, JNA, and JNative for calling DLLs from Java, recommends JNA for simplicity, provides Maven dependencies, complete code examples for both CDecl and StdCall calling conventions, and shares a troubleshooting tip about matching DLL and JDK bitness and using absolute paths.

This article introduces Java's Project Panama foreign function and memory API, showing how to use JDK 19 to call native C code from a simple Hello World program, covering linker setup, symbol lookup, function descriptors, memory sessions, and method handles with practical code examples.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.