Skip to content

Instantly share code, notes, and snippets.

@santa4nt
santa4nt / HelloJNI.java
Last active October 5, 2024 11:32
Sample JNI/C++ HelloWorld
public class HelloJNI {
static {
System.loadLibrary("hello"); // loads libhello.so
}
private native void sayHello(String name);
public static void main(String[] args) {
new HelloJNI().sayHello("Dave");
}