Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot load JVM
    primarykey
    data
    text
    <p>I'm trying to run java code from C using code taken from <a href="http://www.codeproject.com/Articles/22881/How-to-Call-Java-Functions-from-C-Using-JNI" rel="nofollow noreferrer">here</a>. The code that attempts to run JVM is as follows: </p> <pre><code>JNIEnv *env; JavaVMInitArgs vm_args; JavaVMOption options; options.optionString = "-Djava.class.path=D:\\Java Src\\TestStruct"; vm_args.version = JNI_VERSION_1_6; vm_args.nOptions = 1; vm_args.options = &amp;options; vm_args.ignoreUnrecognized = 0; int ret = JNI_CreateJavaVM(jvm, (void**)&amp;env, &amp;vm_args); </code></pre> <p>The code compiles fine however, when I try to execute it I get the following error: </p> <blockquote> <p>Error occurred during initialization of VM Unable to load native library: Can't find dependent libraries</p> </blockquote> <p>Looking at <a href="https://stackoverflow.com/a/2516903/279982">this</a> question I used dependency walker to find out which binaries I'm missing. It turns out I'm missing <code>ieshims.dll</code> and <code>wer.dll</code> from my computer which according to <a href="http://social.technet.microsoft.com/Forums/en-US/w7itproinstall/thread/8a751f65-ade9-4b8b-a3d3-c720ccbd3d2c/" rel="nofollow noreferrer">this</a> the mentioned dlls are used in vista and above (I'm on XP).<br> So several questions come to my mind: </p> <ul> <li>How do I get rid of this?</li> <li>Why am I getting this error in the first place? Can't I load JVM in XP?</li> </ul> <p>I'm on Windows XP, using Visual Studio 2008, JDK 1.7 installed (tried with 1.6 too).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload