Question

Hello I am trying to install JPype-0.5.4.2 using:

python setup.py install

And I get the following error:

In file included from src/native/common/jp_array.cpp:17:
src/native/common/include/jpype.h:45:10: fatal error: 'jni.h' file not found
#include <jni.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1

Any idea how to fix this? Thanks

No correct solution

OTHER TIPS

I am on MacOSX 10.8.5 and this answer worked for me. After editing def setupInclusion(self):, I ran $ python setup.py install and was successful.

However, if you are on Linux instead, then check to see if you installed the JRE instead of the JDK. See this answer for more details.

jni.h is supplied in the include directory of the JDK.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top