title: How to write code to call JNI using microsoft visual c++
body: <p><img src="https://i.stack.imgur.com/4JqJH.jpg" alt="Screen Grab"></p>
  
  <p><strong>How do I write C code in <code>microsoft visual c++ 2010 Express</code>?</strong> I am unable to do it. I was writing some C code but it is compiled with errors.</p>
  
  <p>Please suggest some way to do it?</p>
  
  <p>I wrote this code:</p>
  
  <pre><code>#include "jni.h"
  #include "stdio.h"
  #include "HelloWorld.h"
  
  JNIEXPORT void JNICALL
  Java_HelloWorld_print(JNIEnv *env, jobject obj) {
      printf("This is a JNI tester");
      return;
  }
  </code></pre>
  
  <p>I got the following error:</p>
  
  <blockquote>
    <p>helloworld.cpp(1): fatal error C1083: Cannot open include file: 'jni.h' No such file or directory</p>
  </blockquote>