tomcat的tcnative-1.dll异常
打开tomcat的控制台后,最前面会出现一个特别长的异常,内容如下The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Tomcat 7.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files\MySQL\MySQL Server 5.5\bin;.;C:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files (x86)\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files (x86)\Microsoft Visual Studio\Common\Tools;d:\Program Files (x86)\bin;D:\Program Files\xampp\mysql\bin;D:\Program Files\jdk1.7\bin;.
从网上看到了一个解决方法是从http://tomcat.heanet.ie/native/下载相应版本的tcnative-1.dll,然后分别解压到jdk\bin\和tomcat7.0\bin\两个目录下面。我下了1.1.12,发现还是不对,控制台如下
An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24
就是说需要的版本不对,需要的是1.1.24版的...不过这个不知道从哪里找,我就直接百度的找到是csdn的一个下载位置
http://download.iyunv.com/detail/svygh123/4911836
里面有32位和64位的,我的是64位的就把64位的解压了出来,解压到jdk\bin和tomcat7.0\bin下,重启tomcat
Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
不再报错
页:
[1]