Build Status

jnigen

This project intends to provide 2 packages to enable JNI interop from Dart & Flutter. Currently this package is highly experimental.

PackageDescription
jniErgonomic C bindings to JNI C API and several helper methods
jnigenTool to generate Dart bindings to Java code using FFI

This is a work-in-progress project under Google Summer of Code 2022 program.

SDK Requirements

Dart standalone target is supported, but due to some problems with pubspec, the dart command must be from Flutter SDK and not Dart SDK. See dart-lang/pub#3563.

On windows, you need to append the path of jvm.dll in your JDK installation to PATH.

For example, on Powershell:

$env:Path += ";${env:JAVA_HOME}\bin\server".

(If JAVA_HOME not set, find the java.exe executable and set the environment variable in Control Panel).