Gradle :
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'org.glavo.glavo:gjavah:0.3.1'
}
import org.glavo.javah.*;
JavahTask task = new JavahTask();
task.setOutputDir(Paths.get(""));
task.addRuntimeSearchPath();
task.addClass("java.lang.Object");
task.addClass("java.lang.String");
task.run();
java -jar gjavah-0.3.1.jar -d . java.lang.Object java.lang.System