ENV: apache-tomcat-7.0.12
java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\java\jdk1.6.0_11\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\projects\play-1.2.1;C:\Perl\bin
2011-5-8 18:14:36 org.apache.coyote.AbstractProtocolHandler init
http://tomcat.heanet.ie/native/1.1.12/binaries/win32/
在启动Tomcat 6.0时发现第一条信息便是:
The Apache Tomcat Native library which allows optimal performance in production environments was not found ……
解决方法:
相关文档:http://tomcat.apache.org/tomcat-6.0-doc/apr.html
去这里http://tomcat.heanet.ie/native/下载最新版本的tcnative-1.dll放到Tomcat的安装目录\Bin下
之后重启Tomcat就OK了。
比如现在我已下载了V1.1.14的tcnative-1.dll,启动时信息变成:
引用
信息: Loaded APR based Apache Tomcat Native library 1.1.14.
http://dev.firnow.com/course/3_program/java/javashl/2008422/110729.html