Fix Tomcat Warning on APR based Apache Tomcat Native library
If you start Apache Tomcat 7 on a Windows machine from within Eclipse, you might get the log message The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path. In fact, this library – which is called tcnative-1.dll – is already present in the tomcat/bin directory of tomcat’s windows release, it’s just not on the library path when you start the server using Eclipse. It’s easy to do that, but only if you know how:
- Double click the tomcat server in eclipse
- Below the General Information tab, click Open launch configuration
- Open the Arguments tab
- Append a new entry to the VM arguments list:
-Djava.library.path="C:\\Eclipse\\Servers\\apache-tomcat-7.0.37\\bin"
Adjust the path so that it matches your own tomcat setup.