tomcat启动错误:Native library was not found on the java.library.path

Native library was not found on the java.library.path
 

P1:Tomcat6启动的时候出现下面这样的提示:

2007-12-31 9:51:51 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:/Sun/jre1.6.0_03/bin;.;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;D:/oraclexe/app/oracle/product/10.2.0/server/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;.;D:/Sun/jdk1.6.0_03/bin;D:/Sun/jdk1.6.0_03/jre/bin;D:/ApacheTomcat/lib;

S1:实际这是建议使用apache的apr;apr 是apache portable runtime 用上这个后可以有效的提高tomcat处理静态页面的能力.如果想使用apr的话, 实际操作很简单,

下载 http://tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll

将这个文件复制到C:/WINDOWS/system32/下面,然后重新启动tomcat,就会发现tomcat 的控制台信息为:
2007-12-31 9:55:40 org.apache.catalina.core.AprLifecycleListener init
信息: An older version 1.1.8 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10
2007-12-31 9:55:40 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded Apache Tomcat Native library 1.1.8.

你可能感兴趣的:(tomcat)