部署程序问题, The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java

本文解决了一个关于MyEclipse中启动Tomcat时遇到的问题,原因是缺少Apache Tomcat Native库导致性能不佳。通过下载并安装tcnative-1.dll文件,放置到正确的Java JDK目录下解决了这一问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天启动MyEclipse自带的Tomcat时,控制台返回如下错误:The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java。

在网上找了解决方法:

----------------------------------------------------------

参考这里http://tomcat.apache.org/tomcat-6.0-doc/apr.html
Windows
Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from here as 32bit or AMD x86-64 binaries. In security conscious production environments, it is recommended to use separate shared dlls for OpenSSL, APR, and libtcnative-1, and update them as needed according to security bulletins. Windows OpenSSL binaries are linked from the Official OpenSSL website (see related/binaries).

 

去拷贝一个tcnative-1.dll
下载地址:http://tomcat.heanet.ie/native

-----------------------------------------------------------

 

放到

C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/bin

目录下,通过。

 

我用的是tcnative-1.dll 的1.1.14版本,好像tomcat会自动提示你找匹配的或者最新的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值