Skip to content

nadako/hljni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hljni - call Java from Haxe/HashLink

Build Status

This Haxe + HashLink library provides bindings for the Java Native Interface, allowing for interoperation between Java VM and HashLink run-time. In other words: we can call Java functions from Haxe, which is useful when e.g. running on Android!

Usage

As with any HashLink bindings, this library consists of two parts:

  • native glue that exposes JNI API in a HashLink-friendly way
  • Haxe externs for the glue

If you compile your Haxe/HL project to C, add the native/hljni.c file to your C compilation.

To use JNI you need an instance of hljni.JNIEnv, which is just a JNIEnv* pointer that you must obtain somehow in your specific application code (TODO: example)

TODO: bytecode/hdll use case, code examples, add helpers, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published