Cannot load JVM 1.4 on Fedora

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

[794 byte] By [drukha] at [2007-10-3 0:48:06]
# 1
The code is compiled with JACE version 1.1rc1_05 . Is it compatible with JDK 1.4?
drukha at 2007-7-14 17:43:06 > top of Java-index,Java HotSpot Virtual Machine,Specifications...