Hi William, On my linux system, I see the default java is the openjdk (but at version 1.6). It is not a JDK, but rather, a JRE, and is missing the include directories.
You need have a JDK (preferably from Oracle or IBM) installed on your system, and Java 1.7 is the right level (not 1.8), because that allows the result to be run with both Java 7 and 8 :-). Thanks! -Marshall On 5/27/2017 9:56 PM, William Colen wrote: > Hi, > > I managed to compile UIMA C++ from source in a Mac. > > Now I am trying in Ubuntu 16.04. > It is a fresh install. I compiled all recommended dependencies manually. > > I am getting issues with the configure command: > > ./configure --prefix=/home/ubuntu/uima-deps/libs/uima-cpp > --with-jdk=/usr/lib/jvm/java-8-openjdk-amd64/include/ > --with-apr=/home/ubuntu/uima-deps/libs/apr > --with-icu=/home/ubuntu/uima-deps/libs/icu > --with-xerces=/home/ubuntu/uima-deps/libs/xerces > --with-activemq=/home/ubuntu/uima-deps/libs/activemq-cpp > --with-apr-util=/home/ubuntu/uima-deps/libs/apr-util > > (...) > checking activemq/exceptions/ExceptionDefines.h usability... yes > checking activemq/exceptions/ExceptionDefines.h presence... yes > checking for activemq/exceptions/ExceptionDefines.h... yes > configure: Apache Portable Runtime (APR Util ) library configuration > checking for APR-util... yes > checking jni.h usability... no > checking jni.h presence... no > checking for jni.h... no > configure: error: Unable to find JDK Headers > > > I double checked the contents of /usr/lib/jvm/java-8-openjdk-amd64/include/ > and > tried with the Oracle JDK as well and got the same error. > > Anybody managed to compile with Java 8 on Ubuntu? > > Thank you, > William >
