3

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

4

2 回答 2

1

我在 MacOSX 10.8.5 上,这个答案对我有用。编辑后def setupInclusion(self):,我运行$ python setup.py install并成功。

但是,如果您使用的是 Linux,请检查您是否安装了 JRE 而不是 JDK。有关更多详细信息,请参阅此答案

于 2014-04-29T13:30:39.237 回答
0

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

于 2014-02-03T00:02:21.200 回答