<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[configure: error: *** Cannot find jni.h - check your JDK installation ***]]></title><description><![CDATA[<p dir="auto">Having a tough time figuring out how to get configure to see my JDK install.  Tried below with --includedir=/usr/lib/jvm/java-8-oracle as well.<br />
Edit: This is trying to build netxms-2.0-RC2 on Ubuntu 12.04.5 with Oracle's Java SDK version 1.8 installed.</p>
<p dir="auto">sh ./configure --prefix=/opt/netxms --with-server --with-snmp --with-client --with-client-proxy --with-agent --disable-ipv6 --with-jdk --with-mysql --with-openssl --with-gnu-ld<br />
...<br />
configure: error: *** Cannot find jni.h - check your JDK installation ***</p>
<p dir="auto">java -version<br />
java version "1.8.0_66"<br />
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)<br />
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)</p>
<p dir="auto">DERBY_HOME=/usr/lib/jvm/java-8-oracle/db<br />
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/include<br />
JAVA_HOME=/usr/lib/jvm/java-8-oracle<br />
J2SDKDIR=/usr/lib/jvm/java-8-oracle<br />
J2REDIR=/usr/lib/jvm/java-8-oracle/jre</p>
<p dir="auto">UPDATE/SOLVE:<br />
On a hunch that configure needs gcj glue to "find" java headers, went ahead and installed java-gcj-compat-headless and java-gcj-compat-dev and all dependencies.  Configure works now.</p>
]]></description><link>https://forum.netxms.org/topic/4175/configure-error-cannot-find-jni.h-check-your-jdk-installation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 21:03:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4175.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Dec 2015 01:15:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to configure: error: *** Cannot find jni.h - check your JDK installation *** on Wed, 09 Dec 2015 20:20:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi, Victor.</p>
<p dir="auto">Actually I tried specifying with --with-jdk /usr/lib/jvm/java-8-oracle and also appending /include to path - neither worked.  Don't know if it's a limitation of the configure function to check java version but installing the gjc packages did the trick.</p>
]]></description><link>https://forum.netxms.org/post/18570</link><guid isPermaLink="true">https://forum.netxms.org/post/18570</guid><dc:creator><![CDATA[depierce]]></dc:creator><pubDate>Wed, 09 Dec 2015 20:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to configure: error: *** Cannot find jni.h - check your JDK installation *** on Tue, 08 Dec 2015 12:02:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">alternatively, you can specify JDK location in --with-jdk parameter, like this:</p>
<p dir="auto">./configure --with-jdk=/usr/lib/jvm/java-7-openjdk-amd64</p>
<p dir="auto">JDK location varies between distributions, this example is from Deian/Ubuntu.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18563</link><guid isPermaLink="true">https://forum.netxms.org/post/18563</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Dec 2015 12:02:48 GMT</pubDate></item></channel></rss>