How to call GetCreatedJavaVMs

Respected Members ,I Want to know from you that How Can i Call the above mentioned Function As early as possible Thanks in Advance Reply!!!!!jayesh.dulani@gmail.com
[206 byte] By [jayesh.dulania] at [2007-11-27 7:31:09]
# 1

jint size = 1; //your choice

jint vmCount;

JavaVM *jvm;

jint ret= JNI_GetCreatedJavaVMs(&jvm, size, &vmCount);

//if ret==0, it's a success

Make sure you add jvm.lib as an additonal dependency in linker properties and the path to jvm.lib in additonal library directory.

Rest of the information can be found on sun's documenataion.

http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html

kteegalaa at 2007-7-12 19:11:26 > top of Java-index,Java HotSpot Virtual Machine,Specifications...