jnim
Nim - Java bridge
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install jnim
choosenim install jnim
git clone https://github.com/yglukhov/jnim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| jnim | ✓ | ✓ | ✓ | - | - | - | ✓ | - | - | ✓ |
Source
| Repository | https://github.com/yglukhov/jnim |
|---|---|
| Homepage | https://github.com/yglukhov/jnim |
| Registry Source | nimble_official |
README
jnim - JNI library for Nim language

Native language integration with Java VM has never been easier!
import jnim
# Import a couple of classes
jclass java.io.PrintStream of JVMObject:
proc println(s: string)
jclass java.lang.System of JVMObject:
proc `out`: PrintStream {.prop, final, `static`.}
# Initialize JVM
initJNI()
# Call!
System.`out`.println("This string is printed with System.out.println!")
Overview
The list of the main features:
- API splitted in two parts: low and high level.
- It supports Java inheritance and generics.
The documentation is coming soon. Now you can look the examples in the tests directory. For example, tests/test_java_lang.nim and tests/test_java_util.nim shows how to use high level API.
If you want to run the tests, use nimble test command.
Installation
nimble install jnim
Thanks
- The current version of the library is a complete rewrite done by @vegansk.
- Also thanks a lot to all the contributors