Generates C++/JNI wrapper from Java archive file (.jar).
go get github.com/mtojo/j2n
j2n -i file
Options:
-i <file> input jar file
-o <dir> output directory; same as input if not specify
-f overwrite output directory if already exists
-x <ext> header file extension (default: .hpp)
-c <ext> source file extension (default: .cpp)
-p <prefix> macro prefix
-s <suffix> macro suffix
-n <namespace> namespace prefix
-t <file> header template file
-u <file> source template file
-l <string> .clang-format file
Generates from Android SDK:
$ j2n -i $ANDROID_SDK_ROOT/platforms/android-21/android.jar -o android-sdk