Talk About Network

Google


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 > Re: JNI_CreateJ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 732 of 808
Post > Topic >>

Re: JNI_CreateJavaVM() fails

by aa@[EMAIL PROTECTED] Nov 22, 2006 at 08:12 AM

Hello,

here my actual code after your corrections:

....
 JavaVMOption options[1];
 options[1].optionString = "-Djava.class.path=.";

 JavaVMInitArgs args;
 args.version = JNI_VERSION_1_4;
 args.nOptions =2;
 args.options = options;
 args.ignoreUnrecognized = JNI_TRUE;

 jsize maxNoOfVMs = 1;
 jsize actualNoOfVMs;

 response = JNI_GetCreatedJavaVMs(&mJvm, maxNoOfVMs, &actualNoOfVMs);
 if (JNI_OK == response && 0 == actualNoOfVMs)
    response = JNI_CreateJavaVM(&mJvm, (void**)&mEnv, &args);
....

I get still -1. I could debug in the meantime
depper and I see that the problem is in the 'unlock'
method. It is coming originally from 'HeapAlloc'
method of 'malloc.c' file. Shoud I set the heap size?
Have you any idea?

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 Sat Jul 5 19:41:04 CDT 2008.