dcsimg
How to invoke JNI_CreateJavaVM successfully?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Zhiguang_Zhu
Posted On:   Sunday, June 2, 2002 07:02 AM

Hi all:



I just wanna to create a JVM and run a very simple class in a c program.

I compiled the example in the Java Native Interface but the invoking

JNI_CreateJavaVM is always fail. It returns -1 or -3.



Can you give me an answer?



Appreciate all answers.



zhiguang


Re: How to invoke JNI_CreateJavaVM successfully?

Posted By:   Pascal_Pochet  
Posted On:   Saturday, August 10, 2002 01:43 AM

Use
vm_args.version = JNI_VERSION_1_2

instead of JNI_VERSION_1_1. Check jni.h for structure to pass options to JVM.
About | Sitemap | Contact