https://github.com/jni-rs/jni-rs
Rust bindings to the Java Native Interface — JNI
https://github.com/jni-rs/jni-rs
java jni rust
Last synced: 15 days ago
JSON representation
Rust bindings to the Java Native Interface — JNI
- Host: GitHub
- URL: https://github.com/jni-rs/jni-rs
- Owner: jni-rs
- License: apache-2.0
- Created: 2016-11-04T23:22:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-21T22:18:11.000Z (about 2 months ago)
- Last Synced: 2025-04-22T09:05:40.001Z (16 days ago)
- Topics: java, jni, rust
- Language: Rust
- Homepage:
- Size: 1.12 MB
- Stars: 1,342
- Watchers: 17
- Forks: 166
- Open Issues: 75
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - jni-rs - rs | 522 | (Rust)
README
[](https://github.com/jni-rs/jni-rs/actions)
[](https://docs.rs/jni)
[](https://crates.io/crates/jni)# JNI Bindings for Rust
[](https://gitter.im/jni-rs/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
This project provides complete JNI bindings for Rust, allowing to:
- Implement native Java methods for JVM and Android in Rust
- Call Java code from Rust
- Embed JVM in Rust applications and use any Java librariesSee the [docs](https://docs.rs/jni) for more details.
## Example
```shell
cd example
make
```## Contribution
See the [Contribution Guide](CONTRIBUTING.md) for details.
## License
Licensed under either of
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.