Heres' the C source code calling JNI_CreateJavaVM that is getting the "Unable
to Launch JVM -6". I pretty much copied it from various web pages on "how to
call JNI from C".
Why does the JNI_CreateJavaVM have a classpath? Isn't there one already
specified in the _CEE_ENVFILE? Maybe I don't need this?
JNIEnv* create_vm(JavaVM **jvm)
{
JNIEnv* env;
JavaVMInitArgs args;
JavaVMOption options;
args.version = JNI_VERSION_1_6;
args.nOptions = 1;
options.optionString =
"-Djava.class.path=.:/u/vendor/jig/DOZAPI3";
args.options = &options;
args.ignoreUnrecognized = 0;
int rv;
rv = JNI_CreateJavaVM(jvm, (void**)&env, &args);
if (rv < 0 || !env)
printf("Unable to Launch JVM %d\n",rv);
else
printf("Launched JVM! :)\n");
return env;
}
Janet
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN