title: JNI cannot detect __int64 on NetBeans
body: <p>I'm trying to compile a native library to use it from java (with JNI). I have followed this tutorial:
  <a href="https://cnd.netbeans.org/docs/jni/beginning-jni-win.html" rel="nofollow">https://cnd.netbeans.org/docs/jni/beginning-jni-win.html</a></p>
  
  <h1>The error</h1>
  
  <p>When I try to compile, I have this error (see line 4): </p>
  
  <pre><code>[...]
  In file included from ../../Progra~2/Java/jdk1.8.0_91/include/jni.h:45:0,
                   from HelloWorldNative.h:3,
                   from HelloWorldNative.c:6:
  ../../Progra~2/Java/jdk1.8.0_91/include/win32/jni_md.h:34:9: error: unknown type name '__int64'
   typedef __int64 jlong;
           ^
  nbproject/Makefile-Debug.mk:66: recipe for target 'build/Debug/Cygwin-Windows/HelloWorldNative.o' failed
  [...]
  </code></pre>
  
  <p>I can solve this error adding a <code>typedef long long __int64</code> before the <code>#include &lt;jni.h&gt;</code> but I assume that there is something that I'm doing wrong.</p>
  
  <h1>The code</h1>
  
  <p>Here is the code:</p>
  
  <p>HEADER FILE:</p>
  
  <pre><code>/* DO NOT EDIT THIS FILE - it is machine generated */
  typedef long long __int64; // &lt;============ Why do I need to do this?
  #include &lt;jni.h&gt;
  /* Header for class helloworld_Main */
  
  #ifndef _Included_helloworld_Main
  #define _Included_helloworld_Main
  #ifdef __cplusplus
  extern "C" {
  #endif
  /*
   * Class:     helloworld_Main
   * Method:    nativePrint
   * Signature: ()V
   */
  JNIEXPORT void JNICALL Java_helloworld_Main_nativePrint
    (JNIEnv *, jobject);
  
  #ifdef __cplusplus
  }
  #endif
  #endif
  </code></pre>
  
  <p>SOURCE FILE:</p>
  
  <pre><code>/*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  #include "HelloWorldNative.h"
  
  JNIEXPORT void JNICALL Java_helloworld_Main_nativePrint
    (JNIEnv *env, jobject _this){
  
  }
  </code></pre>