天天看點

optimal performance in production environments was not found on the java.library.path最簡單解決方法

啟動tomcat時,報如下錯誤:

七月 28, 2019 9:22:23 下午 org.apache.catalina.core.AprLifecycleListener init

資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\intellijddc\jdk1.7.0_67\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.

最簡單的解決方法:

在tomcat中找到server.xml檔案,把如下代碼注釋掉:

<!--<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />-->