Tomcat starts with an error in eclipse

When building a project with maven, the cargo-maven2-plugin plugin is used, but when running mvn install, tomcat7 runs an error, as follows:

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 

However, it is normal for me to start it in eclipse or outside of eclipse. After searching, it is said that the tcnative file is not found in the path path, but this file exists in tomcat/bin, and then copy it to C:\ In the Java\jdk1.7.0_21\jre\bin directory, it runs normally

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326717945&siteId=291194637