Skip to content

Instantly share code, notes, and snippets.

@dapurv5
Created January 15, 2013 12:38
Show Gist options
  • Select an option

  • Save dapurv5/4538350 to your computer and use it in GitHub Desktop.

Select an option

Save dapurv5/4538350 to your computer and use it in GitHub Desktop.
Jni Demo
public class Hello{
static{
System.loadLibrary("Hello");
}
public native void sayHello(int length);
public static void main(String args[]){
String str = "Hello World, JNI";
Hello h = new Hello();
h.sayHello(str.length());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment