Reputation: 111
I am trying to compile a C program which uses Java's JNI header jni.h
, but I am getting the following error:
sorry, unimplemented: 64-bit mode not compiled in #include <jni.h>
I am using the 64 bit JDK, so I don't understand why this is happening.
Upvotes: 6
Views: 9141
Reputation: 3069
you should download a 64bit mingw version at https://sourceforge.net/projects/mingw-w64/
download the exe installer
Upvotes: 1
Reputation: 111
The problem turned out to be that I was using the 32-bit version of MinGW GCC. On updating to the 64-bit compilers, the error went away.
Upvotes: 4