I have Visual Studio C++ Project, which has to call some java functionality. I'm going to use JNI. I have specified additional include directories:
C:\Program Files (x86)\Java\jdk1.7.0_10\include
C:\Program Files (x86)\Java\jdk1.7.0_10\include\win32
and additional library directory
C:\Program Files (x86)\Java\jdk1.7.0_10\lib
and was able to compile needed code. But I still cannot run it because of the next error:
The program can't start bacause jvm.dll is missing...
I assume, the simplest way is just to copy the dll into the project directory. But I don't know which one. I found, for example, few different of them:
C:\Program Files (x86)\Java\jdk1.7.0_10\jre\bin\client\jvm.dll
C:\Program Files (x86)\Java\jdk1.7.0_10\jre\bin\server\jvm.dll
C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
So, which one should I copy?