Hi; I want to call Java codes included Android SDK classes from C++. I can call pure Java codes from C++ for desktop console application. But I cannot call Java codes included Android SDK classes from C++ for Android (I get this error: *JNI_CreateJavaVM was not declared in this scope.*). I want an example for Java Native Interface for Android. Have you got examples about JNI for Android? Also, I found JNI examples and codes for desktop only, no Android. Also I found different *jni.h* and *libjvm.so* files positions:
jni.h Directories: ------------------------------------ /usr/lib/jvm/java-8-oracle/include/jni.h Android/Sdk/ndk-bundle/platforms/android-*/arch-arm/usr/include/jni.h android-studio/jre/include/jni.h libjvm.so Directories: -------------------------------- /home/username/android-studio/jre/jre/lib/amd64/server/libjvm.so /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/86a35af9-97fa-4a2a-b174-fc875b502707%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

