An open API service indexing awesome lists of open source software.

https://github.com/mtojo/j2n

Generates C++/JNI wrapper from Java archive file (.jar)
https://github.com/mtojo/j2n

android c-plus-plus go jar java jni-wrapper

Last synced: 3 months ago
JSON representation

Generates C++/JNI wrapper from Java archive file (.jar)

Awesome Lists containing this project

README

          

# j2n

## Description

Generates C++/JNI wrapper from Java archive file (.jar).

## Installation

go get github.com/mtojo/j2n

## Usage

j2n -i file

Options:

-i input jar file
-o output directory; same as input if not specify
-f overwrite output directory if already exists
-x header file extension (default: .hpp)
-c source file extension (default: .cpp)
-p macro prefix
-s macro suffix
-n namespace prefix
-t header template file
-u source template file
-l .clang-format file

## Example

Generates from Android SDK:

$ j2n -i $ANDROID_SDK_ROOT/platforms/android-21/android.jar -o android-sdk