Calling Java functions from C language
问题 I am tying to call java functions from c code. I used the JNI as discussed in the example at http://www.ishaanguliani.com/content/calling-java-functions-c-linux-ubuntu-jni I used the same code and followed the same steps but I am getting unable to find the class print. I debugged but I didnt find what I did wrong. Sharing my code here unions@universe:~/uni_tmp/jni/vvn$ cat MyC.c #include <stdio.h> #include <jni.h> #include "MyJava.h" #include <string.h> JNIEnv* create_vm(JavaVM ** jvm) {