java_interop 1.2.0 copy "java_interop: ^1.2.0" to clipboard
java_interop: ^1.2.0 copied to clipboard

Call Java from pure Dart over JNI, using only dart:ffi and no Flutter SDK. Boots or attaches to a JVM in-process, loads jars, and calls constructors, methods, fields and arrays.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add java_interop

With Flutter:

 $ flutter pub add java_interop

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  java_interop: ^1.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:java_interop/java_interop.dart';
1
likes
160
points
507
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Call Java from pure Dart over JNI, using only dart:ffi and no Flutter SDK. Boots or attaches to a JVM in-process, loads jars, and calls constructors, methods, fields and arrays.

Repository (GitHub)
View/report issues

Topics

#java #jni #ffi #interop #jvm

License

Apache-2.0 (license)

Dependencies

ffi

More

Packages that depend on java_interop