tomcat启动出现The APR based Apache Tomcat Native library错误

今天在idea中直接启动springboot项目时,出现以下错误:

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\soft\java\jdk1.8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NetSarang\Xftp 6\;C:\Program Files (x86)\NetSarang\Xshell 6\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\soft\java\jdk1.8\bin;D:\soft\apache-maven-3.3.9\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Pan Iflytek;C:\Program Files\Git\cmd;C:\Users\xxx\AppData\Local\Microsoft\WindowsApps;;C:\Windows\System32\Wbem;.]

第一步

先检查自己使用的tomcat的bin目录下是否有tcnative-1.dll文件,如果有先不考虑版本直接复制一份到C:\Windows\System32\目录下,然后再启动。

此时由于版本号可能存在问题,会接着出现以下类似的错误

Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2].

这个时候我们就要去下载对应的版本了,下载地址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/

然后解压后,里面有32位跟64位的,根据需要在复制到前面的目录中。

然后再重新启动基本就可以了。如果还是提示版本错误,可以尝试重启下电脑试试。

  • 2
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值