【问题描述】
启动Tomcat,如下提示:
信息::The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path...
【原因分析】
ARP(Apache Portable Runtime)文件可以用于Tomcat 提升页面处理性能等,具体参考:http://tomcat.apache.org/tomcat-7.0-doc/apr.html
【解决方式】
1.Tomcat(7.0)安装完成后在bin目录下会自带一个tcnative-1.dll,打开Tomcat属性设置面板,选择Java页面,在Java ClassPath中添加Tomcat安装路径的bin目录,重新启动Tomcat即可;
2.如果安装的Tomcat bin目录下没有tcnative-1.dll文件,到http://tomcat.heanet.ie/native/下载一个最新版本,按照步骤1的方式添加Library引用即可。