I’ve got following error message while compiling the C program (which will create a JVM). I have already include the path of the jni.h and jni_md.h during compilation.
Does anyone know the causes of such error and how to solve it?
/tmp/cc3QW6IQ.o: In function `main’:
/tmp/cc3QW6IQ.o(.text+0x16): undefined reference to `JNI_GetDefaultJavaVMInitArgs’
/tmp/cc3QW6IQ.o(.text+0x55): undefined reference to `JNI_CreateJavaVM’
collect2: ld returned 1 exit status
Thanks