Last active
December 17, 2015 05:48
-
-
Save masazdream/5560075 to your computer and use it in GitHub Desktop.
JNIでJavaからCPPを呼び出す<1>
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
| package jp.sp.jni; | |
| public class HelloWorldJNI { | |
| static { | |
| System.loadLibrary("HelloWorldJNI"); | |
| } | |
| public native String sayHelloWorld(); | |
| public static void main(String[] args){ | |
| HelloWorldJNI hello = new HelloWorldJNI(); | |
| System.out.println(hello.sayHelloWorld()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment