I don't know what to do. I have jdk1.4. When I try to compile test.c I've got this: test.o(.text+0x19): undefined reference to `JNI_GetDefaultJavaVMInitArgs' test.o(.text+0x5a): undefined reference to `JNI_CreateJavaVM' I've specified all header files but don't know what else gcc wants p.s.: -ljava -ljvm couldn't be found in OS. What wrong ?