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!

can't load jvm.dll

843829Mar 27 2007 — edited Mar 28 2007
the following simple code can't load jvm.dll
at windows xp sp2 ,
jre-1_5_0_11

#include <jni.h>
#include <stdio.h>

int main() {

HINSTANCE hVM;
if((hVM = LoadLibray("C:\\Program Files\\Java\\jre1.5.0_11\\bin\clien\\jvm.dll"))==NULL){
printf("faild\n");
}
else
printf("succes\n");

return 0;
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2007
Added on Mar 27 2007
5 comments
558 views