Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > JNI_CreateJavaV...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 732 of 803
Post > Topic >>

JNI_CreateJavaVM() fails

by aa@[EMAIL PROTECTED] Nov 22, 2006 at 07:15 AM

Hello,

I try to create a Java virtual machine in a C++
application (Windows XP). I have installed
jdk1.5.0_08 and I am sure, that my application
loads the appropriate jvm.dll. Here is my simple
code, I receive always -1:

....
 JavaVMOption options[2];
 options[0].optionString = "-Djava.compiler=NONE";
 options[1].optionString = "-Djava.class.path=.";

 JavaVMInitArgs args;
 args.version = JNI_VERSION_1_4;
 args.nOptions = 2;
 args.options = options;
 args.ignoreUnrecognized = JNI_FALSE;
....
 response = JNI_CreateJavaVM(&mJvm, (void**)&mEnv, &args);
....

Can you please say me what is wrong?!

Thanks,
Anahita




 4 Posts in Topic:
JNI_CreateJavaVM() fails
aa@[EMAIL PROTECTED]   2006-11-22 07:15:13 
Re: JNI_CreateJavaVM() fails
Manfred Rosenboom <mar  2006-11-22 16:30:24 
Re: JNI_CreateJavaVM() fails
santiago538@[EMAIL PROTEC  2006-11-22 07:38:39 
Re: JNI_CreateJavaVM() fails
aa@[EMAIL PROTECTED]   2006-11-22 08:12:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:58:55 CDT 2008.