Example to use JNI with JAVA and C++