I even tried using this... C:\MyWork>bcc32 -tWM -IC:\Program/Files\Java\jdk1.5.0_05\include -IC:\Program/Files\Java\jdk.1.5.0_05\include\win32 -LC:\Program/Files\Java\jdk.1.5.0_05\lib Cal lingJavaCodeFromC.c
But still I am getting this error...
Joined: May 15, 2005
I again did the whole things from strach but failed again.
status = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args); }
2. I tried compiling the above. But I get Error: Unresolved external 'JNI_CreateJavaVM' referenced from C:\JNITEST\JNIEXAMPLE.OBJ
i. I am using BCC compiler ii. bcc32.cfg file contains -I"C:\BCC55\Include" -I"C:\Program Files\Java\jdk1.5.0_02\include\win32" -I"C:\Program Files\Java\jdk1.5.0_02\include" -L"C:\BCC55\Lib" -L"c:\Program Files\Java\jdk1.5.0_02\lib"
iii. Command Line Argument being given for compiling is C:\JniTest>bcc32 -IC:\Program/Files\Java\jdk1.5.0_02\include JniExample.c -Lc:\Program/Files\Java\jdk1.5.0_02\lib\jvm.lib