现在的位置: 首页 > 综合 > 正文

Apache Tomcat Native library

2013年10月14日 ⁄ 综合 ⁄ 共 532字 ⁄ 字号 评论关闭

机器上装的是Tomcat 6.0,每次启动时总有如下提示:

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

解决方案如下:

所谓的Apache Tomcat Native library 其实叫APR,全称为:Apache Portable Runtime and Tomcat 。可以通过下面地址访问:http://tomcat.apache.org/tomcat-5.5-doc/apr.html

用于Windows的APR是一个名称为:tcnative-1.dll 的文件,下载地址:http://tomcat.heanet.ie/native/ ,目前最新版本是1.1.9。

把这个 tcnative-1.dll 文件放到<$JAVA_HOME>/bin下,重启Tomcat,刚才的提示不见了,看来OK了:

2007-10-11 0:30:56 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080

抱歉!评论已关闭.