Java Native Access

★ 8,942⑂ 1,680👁 366⑃ 898● 848▤ 0
JavaNOASSERTIONCreated 2011-04-29
+2
Daily
8,942
stars
1,680
forks
366
watchers
898
prs
848
issues
0
releases

README

!Java Native Access - JNA





Java Native Access (JNA)
========================

The definitive JNA reference (including an overview and usage details) is in the JavaDoc.  Please read the overview.  Questions, comments, or exploratory conversations should begin on the mailing list, although you may find it easier to find answers to already-solved problems on StackOverflow.

JNA provides Java programs easy access to native shared libraries without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes.

JNA allows you to call directly into native functions using natural Java method invocation. The Java call looks just like the call does in native code. Most calls require no special handling or configuration; no boilerplate or generated code is required.

JNA uses a small JNI library stub to dynamically invoke native code. The developer uses a Java interface to describe functions and structures in the target native library. This makes it quite easy to take advantage of native platform features without incurring the high overhead of configuring and building JNI code for multiple platforms.  Read this more in-depth description.

While significant attention has been paid to performance, correctness and ease of use take priority.

In addition, JNA includes a platform library with many native functions already mapped as well as a set of utility interfaces that simplify native access.

Projects Using JNA
==================
JNA is a mature library with dozens of contributors and hundreds of commercial and non-commercial projects that use it.  If you're using JNA, feel free to tell us about it.  Include some details about your company, project name, purpose and size and tell us how you use the library.

- Apache Cassandra: Large-scale NoSQL data store.
- Rococoa: Java bindings to the Mac OS X Cocoa framework, by Duncan McGregor.
- jna-posix: Common POSIX Functions for Java.
- JNAerator: Pronounced "generator", auto-generates JNA mappings from C headers, by Olivier Chafik.
- Freedom for Media in Java by Ken Larson/Dieter Krachtus.
- GStreamer-Java: Java bindings and utilities for GStreamer 1.x.
- VLCJ: Java bindings for libVLC.
- SVNKit: Pure Java Subversion client library.
- OmegaT Computer-Aided Translation.
- IntelliJ IDEA by JetBrains.
- Jetbrains Toolbox by JetBrains.
- Apache NetBeans IDE by Apache Software Foundation.
- FileBot Media Renamer by Reinhard Pointner.
- USB for Java by Mario Boikov.
- Waffle: Enables SSO on Windows in Java applications, by Daniel Doubrovkine.
- leveldb-jna: Cross-platform JNA based adapter for LevelDB.
- bolt-jna: Cross-platform JNA based adapter for Bolt. It is to show how to use JNA for binding to Go library.
- JVM OpenVR Bindings.
- Apache Ignite: Direct IO plugin
- Domino JNA: Cross-platform access to HCL Notes/Domino C API methods from Java
- OSHI: Cross-platform Operating System and Hardware Information library for Java
- 

Top issues

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON