Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

fatal error: 'jni.h' file not found

Hello,

I encountered really strange issue, which appeared recently most likely due to XCode/Java updates. Here is my setup:

  • OSX EL Capitan 10.11.6
  • Xcode Version 8.1 (8B62)
  • java version "1.8.0_111"
  • Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
  • Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

My codebase is: commit 6c12533160bc5e6de1f09847d9cd6dd548667a55 Merge: 811eb76 bec3479 Author: Alexander Alekhin alexander.a.alekhin@gmail.com Date: Mon Oct 31 17:35:41 2016 +0000

Previously I was able to build opencv master from sources with no issues but when I'm trying to build it now, it cannot find jni.h!:

/opencv/modules/java/generator/src/cpp/common.h:8:10: fatal error: 'jni.h' file not found
#include <jni.h>

Appreciate any ideas or hints how to fix this.

fatal error: 'jni.h' file not found

Hello,

I encountered really strange issue, which appeared recently most likely due to XCode/Java updates. Here is my setup:

  • OSX EL Capitan 10.11.6
  • Xcode Version 8.1 (8B62)
  • java version "1.8.0_111"
  • Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
  • Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

My codebase is: commit 6c12533160bc5e6de1f09847d9cd6dd548667a55 Merge: 811eb76 bec3479 Author: Alexander Alekhin alexander.a.alekhin@gmail.com Date: Mon Oct 31 17:35:41 2016 +0000

Previously I was able to build opencv master from sources with no issues but when I'm trying to build it now, it cannot find jni.h!:

/opencv/modules/java/generator/src/cpp/common.h:8:10: fatal error: 'jni.h' file not found
#include <jni.h>

Appreciate any ideas or hints how to fix this. this? JAVA_HOME is pointing at correct folder and also include folder is there and jni.h is where it should be ...