Skip to content

jwill/jnigen_example

 
 

Repository files navigation

package:jnigen Example

A sample command-line application that interops with Java code using package:jnigen, with an entrypoint in bin/ and library code in lib/.

Regenerate Bindings

To generate bindings, run:

dart run jnigen --config jnigen.yaml

Run example

The dynamic libraries must be built, and the java source must be compiled before running the example.

dart run jni:setup
javac java/dev/dart/Example.java

Now you can test the code:

dart run jnigen_example:sum 17 25

Outputs:

42

About

A standalone Dart example for jnigen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 97.5%
  • Java 2.5%