D
dzikus_
Hello,
I have problem with following code:
...
JNIEnv *env;
JavaVM *jvm;
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_2;
vm_args.options = NULL;
vm_args.nOptions = 0;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
...
unfortunately JNI_CreateJavaVM returns -1 (JNI_ERR).
I tried on WinXP using jdk1.3.1_19 and VC++ 2005.
jvm.dll is copied from jdk1.3.1_19\jre\bin\classic\ to working path,
jdk1.3.1_19\include\ and jdk1.3.1_19\include\win32 are added to include
path
jdk1.3.1_19\lib\jvm.lib is included while linking program,
Do you have any idea what else should i check?
Regards
Dominik
www.goryidoliny.freehost.pl
I have problem with following code:
...
JNIEnv *env;
JavaVM *jvm;
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_2;
vm_args.options = NULL;
vm_args.nOptions = 0;
vm_args.ignoreUnrecognized = JNI_TRUE;
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
...
unfortunately JNI_CreateJavaVM returns -1 (JNI_ERR).
I tried on WinXP using jdk1.3.1_19 and VC++ 2005.
jvm.dll is copied from jdk1.3.1_19\jre\bin\classic\ to working path,
jdk1.3.1_19\include\ and jdk1.3.1_19\include\win32 are added to include
path
jdk1.3.1_19\lib\jvm.lib is included while linking program,
Do you have any idea what else should i check?
Regards
Dominik
www.goryidoliny.freehost.pl