[gdal-dev] Building for Java on MacOS

Andrew C Aitchison andrew at aitchison.me.uk
Mon Apr 27 10:52:01 PDT 2020


On Mon, 27 Apr 2020, David Rush wrote:

> Ivan:
>
> Thanks!  That worked.  On to the next error (with make in gdal/swig/java)
> ...
>
> gdalconst_wrap.c:154:10: fatal error: 'jni.h' file not found
> #include <jni.h>
>         ^~~~~~~
> 1 error generated.
> make: *** [gdalconst_wrap.lo] Error 1
>
> Where *should* jni.h come from?  I can't find it anywhere in my Java
> installation.

I believe it should be in the JDK (Java Development Kit)
- do you just have the JRE or Java Runtime Environment ?

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list