I have some .h files on my Ubuntu server, but not under > > /usr/lib/jvm/java-1.6.0-openjdk but under /usr/lib/jvm/java-6-openjdk > > > > Regards > > Jeff > > > > > As shown in my original message there is a JDK > > > /usr/lib/jvm/java-1.6.0-openjdk-126.96.36.199/* > > but no "jni_md.h" in the Open JDK. Thankfully, I've already done the research for you and it's in jni/native. export JAVA_HOME_8=$(/usr/libexec/java_home -v 1.8.0_60) flow owner jodersky commented Sep 23, 2015 What does /usr/libexec/java_home -v 1.8.0_60 evaulate to?
a.out > > checking whether the C compiler works... I am not fluent in shell scripting, so my understanding of "configure" is very limited. The installation steps are provided in the code that follows. confusing). https://coderanch.com/t/565647/Tomcat/find-jni-md-usr-bin
I tried with Java 7 and it still is the same problem! Thanks for your support! none needed > > checking for ranlib... I had to install the OpenJDK-dev to > get the full JDK. > > I managed to build the jsvc (yeah!), now I am getting an error after > starting tomcat
comment:9 Changed 5 years ago by jmroot (Joshua Root) Resolution set to fixed Status changed from new to closed r86716 Note: See TracTickets for help on using tickets. It should be somewhere inside JAVA_HOME. none needed checking for ranlib... ok > > > *** C-Language compilation tools *** > > > checking for gcc...
As shown in my original message there is a JDK > /usr/lib/jvm/java-1.6.0-openjdk-188.8.131.52/* but no "jni_md.h" in the Open JDK. strip > > > > *** Host support *** > > > > checking C flags dependant on host system type... I get an > > error > > > running the "configure" script as indicated in the Tomcat > documentation. > > I > > > did a lot of searching We recommend upgrading to the latest Safari, Google Chrome, or Firefox.
Also, did setting JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0_60), as I described in my previous post, solve any problems? i686-pc-linux-gnu > > > checking cached host system type... I'll see how to correct configure.ac to detect the new layout. If running as a non-root user, use the --prefix option with configure to specify another install location. $ tar zxvf apr-x.y.z.tar.gz $ cd apr-x.y.z $ ./buildconf $ ./configure $ make install
strip > *** Host support *** > checking C flags dependant on host system type... https://www.yesdevnull.net/2014/06/installing-the-apr-based-tomcat-native-library-for-jira-on-debian-7/ Cannot find jni_md.h in >> /usr/lib/jvm/jre/* *configure: error: You should retry >> --with-os-type=SUBDIR* >> >> [[email protected] unix]$ find / -name 'jni_md.h' >> 2>/dev/null >> >> [[email protected] unix]$ find / -name '*jni*' gcc checking whether the C compiler works... But I got Java directories with java executable everywhere so not sure which one is called when I run $java And the jni doesn't exist.
I found this link that helped: building-universal-apache-tomcat-native-library-on-osx. yes checking whether gcc accepts -g... awk checking whether make sets $(MAKE)... Why do I get this error ?
yes checking for gcc option to accept ANSI C... export JAVA_HOME=
yes > > > checking whether we are cross compiling... Join them; it only takes a minute: Sign up Tomcat setup fails on Mac with 'Cannot find jni_md.h in /usr/bin/java/' up vote 1 down vote favorite I get the error below ok > *** C-Language compilation tools *** > checking for gcc...
If I launch tomcat using that command: sudo ./daemon.sh start with setenv.sh: export CATALINA_HOME=/datadisk1/tomcat export CATALINA_OPTS="-server -Xms128M -Xmx512M" export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-184.108.40.206/jre export TOMCAT_USER=tomcat then catalina-daemon.out shows: Aug 24, 2012 1:29:11 PM org.apache.catalina.core.AprLifecycleListener I did not > install Tomcat7 that comes with the AWS Linux, I downloaded Tomcat7 from > the Apache Tomcat website, I installed it and ran Tomcat7 successfully. o checking whether we are using the GNU C compiler... Cannot find jni_md.h in > > /usr/lib/jvm/java-1.6.0-openjdk-220.127.116.11/jre/* > > *configure: error: You should retry --with-os-type=SUBDIR* > > > > ----------------------------------------- > > configure script excerpt: > > > >
Now that we've got the configure script, we need to run the script with the appropriate configuration locations and files. If that's the case use the > > > --with-os-type=
Attachments (1) main.log (10.7 KB) - added by [email protected]… 6 years ago. no > > > > > checking for suffix of executables... > > > > > checking for suffix of object files... I get >> an > error >> running the "configure" script as indicated in the Tomcat >> documentation. > I >> did a lot of searching on the web and cannot no configure: error: in /Users/joe/Downloads/flow-native-srcrelease':
configure: error: C compiler cannot create executables
Seeconfig.log' for more details The config.log shows the following...
I tried googling the problem, but there is hardly anything online with jni_md.h let alone to do with Tomcat's APR installation. OS: Fedora 16 JDK: 1.6 JAVA_HOME set to /usr/lib/java Tomcat Version: 6 Karthik Shiraly Bartender Posts: 1210 25 I like... I'm not sure what the next line in the log is suggesting... :info:configure configure: error: You should retry --with-os-type=SUBDIR comment:3 follow-up: ↓ 5 Changed 6 years ago by jmroot (Joshua Root) OK, Do you have a JDK (Java Development Kit) installed, not just the JRE (Java Runtime Environment)?
gcc > > checking for C compiler default output file name... If you don’t need OpenSSL support, you can use the --without-ssl option with configure to disable it. no checking for suffix of executables... If I could get this library up and running into my Play WebApp on the RasPi, that would be great!
Already have an account? java -version will also give the vendor name. All I can note is that macports is looking for this file in (from the log): :info:configure adding "-I/System/Library/Frameworks/JavaVM.framework/Home/include" to TCNATIVE_PRIV_INCLUDES :info:configure checking os_type directory... i686-pc-linux-gnu > > > > > checking cached host system type...
© Copyright 2017 nyfreewifi.com. All rights reserved.