Overview of fbjni
mainfbjni is a C++ library designed to simplify the use of the Java Native Interface (JNI). While it was originally implemented to ease the integration of cross-platform mobile code on Android, it is designed to be platform-agnostic and can be used with any Java VM that supports JNI.
Key features include:
- Automatic inference of Java method descriptors.
- Automatic conversion between C++ types (like
std::string) and Java types. - Automatic management of JNI references (e.g.,
local_ref). - Automatic exception translation between Java and C++ in both directions, removing the need to manually check exception states after every call.