java-native-access/jna
Java Native Access observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 95
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5605
- days_rel: n/a
- days_push: 31
- n_releases_24m: 0
Adoption not part of the score
8930 stars · 1685 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Java Native Access (JNA) is a Java library that lets Java programs call native shared libraries (C/C++) using only Java code, without writing JNI boilerplate. Developers describe native functions and structures via Java interfaces, and JNA dynamically invokes them at runtime.
Use cases
- call native C library functions from Java without writing JNI code
- access Windows API or macOS Cocoa features from a Java application
- map native structs and function pointers to Java interfaces
- avoid building and maintaining platform-specific JNI bindings
- interoperate with existing shared libraries (.so, .dll, .dylib) in Java
When to choose
- you need to call native shared libraries from Java with minimal boilerplate
- you want cross-platform native access without compiling per-platform JNI code
- you prefer declaring native functions as Java interfaces over generated bindings
When to avoid
- you need maximum performance for extremely hot call paths (raw JNI or the Foreign Function & Memory API may be faster)
- you are on a modern JDK and can use the built-in java.lang.foreign (Panama) API instead
- you need to call managed code (e.g., .NET or JVM) rather than native shared libraries
Facets
library · maturity stable
sdk developer-tools developer-tools cross-platform operating-systems jvm cross-platform windows jni native-code foreign-function-interface system-programming interop linux macos
1 source
- readme: https://github.com/java-native-access/jna · fetched 2026-08-28 · a2d4fbbe4bbb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| java-native-access/jna | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="java-native-access/jna")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem