Skip to content
Tagged articles

JNA

7 articles · Page 1 of 1
Java Captain
Java Captain
Nov 3, 2026 · Backend Development

Calling DLLs from Java with JNA: Step-by-Step Guide and Common Pitfalls

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.

CDeclDLLJNA
0 likes · 7 min read
Calling DLLs from Java with JNA: Step-by-Step Guide and Common Pitfalls
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 15, 2023 · Backend Development

EJC Architecture: Integrating Electron, Java, and C/C++ for Scalable Desktop Quality Inspection Applications

This article presents the EJC (Electron‑Java‑C/C++) architecture adopted by ZhiZhuan’s quality‑inspection platform, detailing its layered design, communication modules, JNI/JNA integration, performance comparisons, and real‑world implementation for cross‑platform desktop tools, illustrating how the approach enhances extensibility, maintainability, and scalability.

C++ElectronJNA
0 likes · 17 min read
EJC Architecture: Integrating Electron, Java, and C/C++ for Scalable Desktop Quality Inspection Applications
UCloud Tech
UCloud Tech
Mar 14, 2018 · Backend Development

How to Call C/C++ Libraries from Java Using JNA: A Practical Guide

This article explains how to access native C/C++ functions and complex structures from Java using JNI, JNA, and SWIG, compares their trade‑offs, provides type‑mapping tables, detailed code examples for struct definitions, passing, and callbacks, and offers practical tips for reliable cross‑language integration.

C++JNAJNI
0 likes · 9 min read
How to Call C/C++ Libraries from Java Using JNA: A Practical Guide