Does anyone have any experience with JNI? I am trying to startup a
JVM as a subsystem of a C++ program but I'm having trouble figuring
out exactly how to get the jvm started. Here's my code:
JavaVM *jvm;
JNIEnv *env;
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_4;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
This linker can't find implementations for JNI_CreateJavaVM() or
JNI_GetDefaultJavaVMInitArgs() yet they're declared in jni.h