Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jvm was not found

843829Jul 6 2005 — edited Aug 20 2005
Hi 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2005
Added on Jul 6 2005
8 comments
1,403 views