I'm trying to install glpk for java and have followed the instructions for installing glpk on OS X here until ./configure
. During this step, the error configure: error: jni.h not found
appears.
As the instruction states, I tried
./configure \
CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers \
SWIGFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
but it doesn't seem to work, since the same error still comes up. After doing some digging, I found out:
- I don't have a JavaVM.framework within the Frameworks folder
- Instead, my Java VMs are in Library/Java/JavaVirtualMachines/
So I tried executing
./configure \
CPPFLAGS=-I/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/include/ \
SWIGFLAGS=-I/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/include/
I also tried it with .../include/jni.h
and with jdk-12.0.1.jdk
. All resulting in the same error.
I'm a newbie to those things, so I would be very thankful for a hint to anything I could try.