症状:
WinXP 安装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-6.0-doc/apr.html
用于Windows的APR是一个名称为:tcnative-1.dll 的文件,
下载地址:http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ ,目前最新版本是1.1.14该文件创建于(2008-6-11),且为最新版本。
把这个 tcnative-1.dll 文件放到TomCat 6.0 的bin目录下,重启Tomcat,即可解决;