# jni-rs/jni-rs

Rust bindings to the Java Native Interface — JNI

Repository: https://github.com/jni-rs/jni-rs
Canonical: https://ross.abutalabs.com/products/jni-rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: jni, rust, java
Last push: 2026-07-30T15:27:02+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 75, longevity 100
- inputs: {"age_days": 3589, "days_push": 34, "days_rel": 170, "gap_med": 6.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1591, forks 193 (observed 2026-08-28T04:05:08.695742+00:00)

## What it is
jni-rs provides complete Rust bindings to the Java Native Interface (JNI). It lets you implement native Java methods in Rust, call Java code from Rust, and embed a JVM in Rust applications, including on Android.

## Use cases
- write Java native methods in Rust
- call Java libraries from Rust
- embed a JVM in a Rust application
- build Android native libraries in Rust
- bridge Rust and Java code via JNI

## When to choose
- you need Rust code to interoperate with Java or the JVM
- you are building Android apps with Rust native code
- you want to expose Rust libraries to Java applications

## When to avoid
- you need a higher-level, safer interop layer than raw JNI
- your project does not involve Java or the JVM at all

## Facets
- artifact type: library
- maturity: active
- function: sdk
- domain: developer-tools, cross-platform, mobile-development
- platform: rust, jvm, windows
- tags: jni, java-interop, native-methods, jvm-embedding, android-ndk, ffi, android, linux, macos

## Member repositories
- jni-rs/jni-rs (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.695742+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:44.343418+00:00, confidence not recorded.
  - readme: https://github.com/jni-rs/jni-rs (fetched 2026-08-28T04:05:08.695742+00:00, sha 1bca3c013019)
- Data as of 2026-08-30T08:39:29.467469+00:00.
