You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Paquin, Brian" <br...@yale.edu> on 2016/10/27 15:47:10 UTC
Tomcat Native compile can't find jni_md.h
I’m trying to compile Tomcat Native (1.2.10 that comes with 8.5.6), and get the error “Cannot find jni_md.h”
In /usr/lib/jvm/[openjdk-1.8.0_111]/jre/ I have bin and lib but not include…
I downloaded oracle’s 1.8.0_112 JDK and have the same structure (no include).
I haven’t found anything on the web that helps me get the headers back and was hoping someone here could help.
Brian
Re: Tomcat Native compile can't find jni_md.h
Posted by "Paquin, Brian" <br...@yale.edu>.
> On Oct 27, 2016, at 11:53 AM, Christopher Schultz <ch...@christopherschultz.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Brian,
>
> On 10/27/16 11:47 AM, Paquin, Brian wrote:
>> I’m trying to compile Tomcat Native (1.2.10 that comes with
>> 8.5.6), and get the error “Cannot find jni_md.h” In
>> /usr/lib/jvm/[openjdk-1.8.0_111]/jre/ I have bin and lib but not
>> include… I downloaded oracle’s 1.8.0_112 JDK and have the same
>> structure (no include).
>>
>> I haven’t found anything on the web that helps me get the headers
>> back and was hoping someone here could help.
>
> It looks like you have a JRE and you need a JDK to build tcnative.
>
> The JDK contains a jre/ directory and you're right, it has no include/
> subdir. But if you back-out one directory to JAVA_HOME, you should
> have an include/ directory there.
>
> When I unpack the jdk1.8 archive, I get these files:
>
> drwxr-xr-x 2 uucp 143 4096 Jun 22 21:53 bin
> - -r--r--r-- 1 uucp 143 3244 Jun 22 21:53 COPYRIGHT
> drwxr-xr-x 4 uucp 143 4096 Jun 22 21:53 db
> drwxr-xr-x 3 uucp 143 4096 Jun 22 21:53 include
> - -rwxr-xr-x 1 uucp 143 5091318 Jun 22 11:58 javafx-src.zip
> drwxr-xr-x 5 uucp 143 4096 Jun 22 21:53 jre
> drwxr-xr-x 5 uucp 143 4096 Jun 22 21:53 lib
> - -r--r--r-- 1 uucp 143 40 Jun 22 21:53 LICENSE
> drwxr-xr-x 4 uucp 143 4096 Jun 22 21:53 man
> - -r--r--r-- 1 uucp 143 159 Jun 22 21:53 README.html
> - -rw-r--r-- 1 uucp 143 526 Jun 22 21:53 release
> - -rw-r--r-- 1 uucp 143 21109887 Jun 22 21:53 src.zip
> - -rwxr-xr-x 1 uucp 143 110114 Jun 22 11:58
> THIRDPARTYLICENSEREADME-JAVAFX.txt
> - -r--r--r-- 1 uucp 143 177094 Jun 22 21:53 THIRDPARTYLICENSEREADME.txt
>
> - -chris
That did it! Thank you!! (my “find / -name jni” only returned 3 items in Tomcat)
Much appreciated,
Brian
Re: Tomcat Native compile can't find jni_md.h
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Brian,
On 10/27/16 11:47 AM, Paquin, Brian wrote:
> I\u2019m trying to compile Tomcat Native (1.2.10 that comes with
> 8.5.6), and get the error \u201cCannot find jni_md.h\u201d In
> /usr/lib/jvm/[openjdk-1.8.0_111]/jre/ I have bin and lib but not
> include\u2026 I downloaded oracle\u2019s 1.8.0_112 JDK and have the same
> structure (no include).
>
> I haven\u2019t found anything on the web that helps me get the headers
> back and was hoping someone here could help.
It looks like you have a JRE and you need a JDK to build tcnative.
The JDK contains a jre/ directory and you're right, it has no include/
subdir. But if you back-out one directory to JAVA_HOME, you should
have an include/ directory there.
When I unpack the jdk1.8 archive, I get these files:
drwxr-xr-x 2 uucp 143 4096 Jun 22 21:53 bin
- -r--r--r-- 1 uucp 143 3244 Jun 22 21:53 COPYRIGHT
drwxr-xr-x 4 uucp 143 4096 Jun 22 21:53 db
drwxr-xr-x 3 uucp 143 4096 Jun 22 21:53 include
- -rwxr-xr-x 1 uucp 143 5091318 Jun 22 11:58 javafx-src.zip
drwxr-xr-x 5 uucp 143 4096 Jun 22 21:53 jre
drwxr-xr-x 5 uucp 143 4096 Jun 22 21:53 lib
- -r--r--r-- 1 uucp 143 40 Jun 22 21:53 LICENSE
drwxr-xr-x 4 uucp 143 4096 Jun 22 21:53 man
- -r--r--r-- 1 uucp 143 159 Jun 22 21:53 README.html
- -rw-r--r-- 1 uucp 143 526 Jun 22 21:53 release
- -rw-r--r-- 1 uucp 143 21109887 Jun 22 21:53 src.zip
- -rwxr-xr-x 1 uucp 143 110114 Jun 22 11:58
THIRDPARTYLICENSEREADME-JAVAFX.txt
- -r--r--r-- 1 uucp 143 177094 Jun 22 21:53 THIRDPARTYLICENSEREADME.txt
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJYEiL8AAoJEBzwKT+lPKRYj+wP/0OUeSQn/w8bh6lII/eviMO2
bJwbot3/WrPBT3jMwUoZK/3/QyJ118brLFqInddKDKsUpyKalZ0K6hLzLbP2NGA+
GtyHA6TgJbPcMpbd3Fdpzpcbf1Oy+5WQOoDUgV5rC69yFyDg2d5+R1MHfMRSZ0lp
UqtkEEJ0LRN1YxQV23XwgUIGBI6j/ZYw3KTWg7747V7/NPBSF/FuOxQt0flHZy+W
jZtel0H7j2SMLRrVxMSCGeemZgry2bx7mDsmT9Sz+ycrgOalxeg3MUbIZZk/zISC
Ldd3KaL6d98g9VOFX0uO3bLyH+eQ3l5yQu26ziKP64keQww0HODTWatC0xQI+JVZ
v/y/gKgRiFd8ASW04qDaLDQLfUl32d3DrZX26MhfBWxtWJEGqeXhCMXgr3fb+cnF
c3wsYhH7alppZ1iDqf3LcpB2gcQrg2VNE8nvgse+/s/t19U4vsU5TGhtovVOoq2h
bV9Cl0atLgueSx+YCTNJy7Am8lsUwWrIEcZ8fA+g8WTIGEJrtgfvbY+qjgei/z5o
NQylLCDWYXEe7SM+CSUpAzbP15HP/kjcyp8s+GO5YJRiewT8ZVCr4JPrHW1oexEu
IpDTH17Vxtf/Z/6T+coj1s/oIzX3RWutcdWpgyTH4ACRUYrGi0U0pLDlMkBcCMxy
1wZA0UwWhI1v1s4BIeZm
=nqnn
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org