participate


Java Native Interface (JNI) - Cannot load JVM 1.4 on Fedora
<<   Back to Forum  |   Give us Feedback
10 Duke Stars available
This topic has 1 reply on 1 page.
drukh
Posts:3
Registered: 7/18/06
Cannot load JVM 1.4 on Fedora   
Jul 18, 2006 1:54 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);


Any ideas?

Thanks,
Evgeny
 
drukh
Posts:3
Registered: 7/18/06
Re: Cannot load JVM 1.4 on Fedora   
Jul 19, 2006 12:09 AM (reply 1 of 1)  (In reply to original post )

 
The code is compiled with JACE version 1.1rc1_05 . Is it compatible with JDK 1.4?
 
This topic has 1 reply on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics

About Sun forums
  • Oracle Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Oracle Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums