Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JNI_CreateJavaVM allways returns 0

Status
Not open for further replies.

metalscreamer

Programmer
Oct 20, 2003
2
US
Hi,

I am new to JNI. At this point I am just trying to get a simple Hello World Java app to run by invoking the JVM with c++ through JNI. Whenever I call JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args) it fails returning -1. I found a list of return codes for the function and -1 was listed as "Unknown error" very helpful. Thanks in advance for any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top