Tomcat native library installation on 64-bit java 1.6.0

We are trying to install APR 1.2.7 on a 64-bit machine to make it
available for Tomcat.

Previously (on a 32-bit system) all we had to do is build it from
sources under /usr/local/apr and

cp /usr/local/apr/lib/* /usr/java/jdk1.6.0/jre/lib/i386

Then restarting tomcat would pick up the required libraries. The
sources compile and copy libapr*.so to that location on 64-bit,
however starting up Tomcat still produces the warning:

01:02:17,691 INFO AprLifecycleListener:86 - The Apache Tomcat Native
library which allows optimal performance in production environments
was not found on the java.library.path: /usr/java/jdk1.6.0/jre/lib/
i386/server:/usr/java/jdk1.6.0/jre/lib/i386:/usr/java/jdk1.6.0/jre/../
lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

Advertisements

CIndy Lee wrote:
> We are trying to install APR 1.2.7 on a 64-bit machine to make it
> available for Tomcat.
>
>
>
> Previously (on a 32-bit system) all we had to do is build it from
> sources under /usr/local/apr and
>
>
>
> cp /usr/local/apr/lib/* /usr/java/jdk1.6.0/jre/lib/i386
>
>

Are you sure that's the correct location?

On my 64bit JDK/JRE the libraries are in jre/lib/amd64/, not jre/lib/i386. Maybe
you've put 64bit libraries in the directory for 32bit libraries.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!