Created
January 15, 2013 12:38
-
-
Save dapurv5/4538350 to your computer and use it in GitHub Desktop.
Jni Demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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