Cannot load JVM 1.4 on Fedora
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Evgeny_Drukh
Posted On:   Monday, July 17, 2006 08:47 AM

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);    More>>

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    <<Less

Re: Cannot load JVM 1.4 on Fedora

Posted By:   Nicol_Saraova  
Posted On:   Tuesday, July 25, 2006 01:31 PM

Please, check if $JAVA_HOME is set properly.
About | Sitemap | Contact