Skip to content

Instantly share code, notes, and snippets.

View 0130w's full-sized avatar
:octocat:
Working at home

Labmem 001 0130w

:octocat:
Working at home
  • Sichuan, Chengdu
  • 13:38 (UTC +08:00)
View GitHub Profile
@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");
}