Greetings all,
I am trying to create a CodeBlocks project to run the Voce speech recognition library (
http://voce.sourceforge.net/) sample (recognitionTest.cpp). I am on a Windows 7, 64 bit machine.
The build error I get says:
The program executes in a console window, but I get the error:
1 2
|
Error occured during initialization of VM
Unable to load native library: Can't find dependent libraries
|
It seems to me that the compiler can't find some Java files or functions it needs to execute the program. However, in the project I have the following header files:
jni.h, jni_md.h, voce.h
And also in the Project->Build options->Search directories->Linker, I have added a link to "C:\Program Files (x86)\Java\jdk1.8.0_51\lib" where libjvm.a is located. And also added
libjvm.a to Project->Build options->Linker settings->Link libraries. And copied a
jvm.dll to the project folder from C:\Program Files (x86)\Java\jdk1.8.0_51\jre\bin\client.
What am I missing in the project, so it doesn't runproperly? I am very much in need of some help and guidance. Thank you very much!
Kind regards, T