jvm was not found
843829Jul 6 2005 — edited Aug 20 2005Hi everyone,
I'm having a problem wiht my VC++ 6 program; i'm using jni to call java method from c++ i configure my environment and all compile -links issues are fine, the problem is that when i try to run my program it sent me the following error
This application has failed to start because jvm.dll was not found. Re-installing the application may fix this problem.
but i really don't think so, i think is a classpath problem, i tried to put my exe file in the jvm directory and it works, but how can i fix this problem, i put this option entry in my code:
#define DLL_CLASSPATH ".;D:\\j2sdk1.4.2_08\\jre;D:\\j2sdk1.4.2_08\\jre\\bin;D:\\j2sdk1.4.2_08\\jre\\bin\\client;D:\\j2sdk1.4.2_08\\jre\\bin\\client\\jvm.dll"
options[2].optionString = "-Djava.library.path=" DLL_CLASSPATH
but it isn't working, may someone please help me about how to see the jvm.dll?