The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\

启动tomcat服务器出现如图警告,这是由于tomcat配置错误所致。

The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\


解决办法:

这里以eclipse Neon版本为例(免安装版)。

1.如图,右键单击Tomcat--->New--->Server

The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\


2.点击add,重新添加一个tomcat服务器。

The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\


3.选择Tomcat路径和JRE

(注:这里选择 installed JRE,添加自己安装的jdk中的jre,不要选择默认的)

The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\


4.重新部署Tomcat

The APR based Apache Tomcat Native library failed to load.The error reported was [D:\Tomcat\