Error in creating JVM - TechRepublic
General discussion
July 30, 2001 at 09:31 PM
sitay2001

Error in creating JVM

by sitay2001 . Updated 24 years, 5 months ago

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

This discussion is locked

All Comments