<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><span style="font-size: 12pt;">Hi,</span></div><div><br></div><div>I am trying to build zoo-kernel with Java support on 64 bit Ubuntu machine.</div><div><br></div><div>/configure --with-js --with-python --with-java=/usr/lib/jvm/java-7-openjdk-amd64/</div><div><br></div><div>"http://www.zoo-project.org/docs/install/installation.html#java-support-optional" assumes that the include/linux and jre/lib/i386/client/ subdirectories exist in /usr/lib/jvm/java-7-openjdk-amd64/, and that the include/linux directory contains the jni.h headers file and that the jre/lib/i386/client/ directory contains the libjvm.so file. </div><div><br></div><div>As I am using OpenJDK (and not Oracle Java), </div><div>1. "include/linux" has 2 files (jawt_md.h, jni_md.h) and not jni.h asabove assumption</div><div>2. libjvm.so is located under /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/ (it is not under jre/lib/i386/client/ as assumed by configure option).</div><div><br></div><div>The configure command did not throw any errors. Last few lines from console output are given below</div><div><br></div><div>checking jni.h usability... yes</div><div>checking jni.h presence... yes</div><div>checking for jni.h... yes</div><div>checking for JNI_CreateJavaVM in -ljvm... yes</div><div>configure: creating ./config.status</div><div>config.status: creating Makefile</div><div>config.status: creating ZOOMakefile.opts</div><div><br></div><div>Trying to access the Kernel CGI via Apache2 server did not work and apache logs shows the following error.</div><div><br></div><div>[Wed Apr 27 14:16:27.015884 2016] [cgi:error] [pid 16337:tid 140125807777536] [client 193.128.33.248:12614] AH01215: /usr/lib/cgi-bin/zoo_loader.cgi: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory</div><div>[Wed Apr 27 14:16:27.015950 2016] [cgi:error] [pid 16337:tid 140125807777536] [client 193.128.33.248:12614] End of script output before headers: zoo_loader.cgi</div><div><br></div><div>Also shared library dependencies command confirmed that </div><div>ldd zoo_loader.cgi | grep jvm</div><div>        libjvm.so => not found</div><div><br></div><div>Java is in the PATH as seen below.</div><div><br></div><div>$locate libjvm.so</div><div>/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so</div><div>$echo $JAVA_HOME</div><div>/usr/lib/jvm/java-7-openjdk-amd64/bin</div><div>$echo $JDK_HOME</div><div>/usr/lib/jvm/java-7-openjdk-amd64/</div><div> </div><div>Please let me know if there a way to tell .configure command the path to libjvm.</div><div><br></div><div>regards</div><div>Rakesh</div><div><br></div>                                           </div></body>
</html>