Tomcat Native提示 production environments was not found on the java.library.pa

2015-12-17 09:41:55   来源:   评论: 点击:

Windows安装Tomcat Native时总是提示::The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
Windows安装Tomcat Native时总是提示::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-7.0-doc/apr.htmlhttp://tomcat.apache.org/tomcat-7.0-doc/apr.html
 
Windows上安装APR需要一个文件:tcnative-1.dll ,下载地址:http://tomcat.heanet.ie/native/,最新版本1.1.9
 
把这个 tcnative-1.dll 文件放到<$JAVA_HOME>/bin下,重启Tomcat,看到类似如下信息就OK了:
 
2015-10-11 0:30:56 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080

相关热词搜索:TomcatNative

上一篇:tomcat后台报错Could not initialize class sun.awt.X11GraphicsEnvironment 下一篇:最后一页
分享到: 收藏