I have compiled C++ code bringing up JVM. I have used gcc3.4 on Fedora, linked with j2sdk1.4.0_01 libjvm.so.
When running it on Fedora, it does not load the JVM.
The error message is:
terminate called after throwing an instance of 'jace::JNIException'
what(): JNIHelper::getJavaVM
Unable to find the JVM loader
I open the JVM using the following code:
JNIEnv * env;
JavaVM * jvm;
JavaVMOption options[2];
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 2;
int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
Any ideas?
Thanks,
Evgeny