I wrote a simple C ++ application in VC6 that uses jni to invoke a method in java. To do this, I included jni.h and other lib folders in the project directories.
the code compiles, but when I run the application, it fails saying: "jvm.dll was not found. reinstalling the application will fix it." But jvm.dll is present in my computer.
If I install the working directory of the application in the place where jvm.dll is located, then it works like a charm. I can not install the working directory of the application in the jvm.dll directory, because this application will be dll in the future.
I also tried updating the PATH variable in the system variables to the location of jvm.dll, but nothing works.
I suspect jvm.lib is loading jvm.dll from a specific directory location that is not provided by my application .. so its crashing, ..
Please suggest me what goes wrong.
Thanks in advance.
Relationship Raghavendra
source share