This is basically a windows problem, if you look at the jni_md_win32.h file that comes with Oracle jdk, this is the macro definition:
#ifndef _JAVASOFT_JNI_MD_H_ #define _JAVASOFT_JNI_MD_H_ #define JNIEXPORT __declspec(dllexport) #define JNIIMPORT __declspec(dllimport) #define JNICALL __stdcall typedef long jint; typedef __int64 jlong; typedef signed char jbyte; #endif
In the jni_md_linux.h header, these macros are empty. Therefore, I assume that as long as you do not want your native code to be executed in windows using the oracle JVM, you can delete these macros.
javier-sanz
source share