Apache Tomcat Native library路径找不到

在win平台上Eclipse中启动Tomcat时,报如下错误,原因是 java.library.path中找不到Tomcat的tcnative-1.dll库,才会报出The APR based Apache Tomcat Native library not found

信息: The APR based Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_20\jre\bin...

只需配置下环境变量即可,java.library.path的查找路径为系统的环境变量Path路径,而tcnative-1.dll文件在Tomcat的bin目录下,设置下面的PATH变量即可:

set PATH
CATALINA_HOME=D:\soft\apache-tomcat-6.0.41
PATH=%PATH%;%CATALINA_HOME%/bin

Java查找的class类是通过CLASSPATH设置,查找外部的dll或者so模块则通过 用户级参数java.library.path 来加载,不管是Linux还是win平台,都可以通过System.getProperties()来查看Java运行环境参数

public static void main(String[] args) {
// TODO Auto-generated method stub
      Properties p = System.getProperties();
      Set keys = p.keySet();
      for(Object key: keys){
          System.out.println(key.toString() + " : " + p.getProperty(key.toString()));
      }
}

加载非class模块可以从下面两个方法进行加载

1.启动的时候添加参数 
java   -Djava.library.path=PATH

2.在代码中架在你
System.load(PATH)
时间: 2024-10-18 19:47:50

Apache Tomcat Native library路径找不到的相关文章

解决:The APR based Apache Tomcat Native library which allows optimal performance in production...

tomcat日志apr报错引发的基于Tomcat Native加速Tomcat性能 tomact服务启动报错日志如下:息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/ss/jdk1.6.0_13/jre/lib/amd64/server:/ho

解决Tomcat启动时出现的The APR based Apache Tomcat Native library异常

现在用的tomcat6.0,不知道大家注意没有,在启动的时候,那个启动窗口最上面出现这样一条信息: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: 这实际上是tomcat推荐使用apache的apr 需要下载tcnative-1.dll 下载后放到tom

Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.

Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6. 我复制的几个地方: MySql C:\WINDOWS\system32\ jdk \bin文件夹下都要复制此文件

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

今天 ,我在Eclipse中启动Tomcat6.0时,发生如下异常: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:..... 解决如下: 在http://tomcat.heanet.ie/native/下载dll文件:tcnative-1.dll(现在版本是1.1.14) 把它扔

IDEA搭建ssm框架测试衍生出的问题The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Develop\jdk7\jdk1.7.0_79\bin;

最近玩起IDEA这开发工具,搭建ssm框架测试时,部署项目出现如下问题: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Develop\jdk7\jdk1.7.0_79\bin;C:\Windows\Sun\Java\bin;C:\Windows

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

问题信息详细: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre1.8.0_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Win

启动报The APR based Apache Tomcat Native library which allows optimal performance in production environ

mnesia在频繁操作数据的过程可能会报错:** WARNING ** Mnesia is overloaded: {dump_log, write_threshold},可以看出,mnesia应该是过载了.这个警告在mnesia dump操作会发生这个问题,表类型为disc_only_copies .disc_copies都可能会发生. 如何重现这个问题,例子的场景是多个进程同时在不断地mnesia:dirty_write/2 mnesia过载分析 1.抛出警告是在mnesia 增加dump

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

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 由代码可知是缺少APR模块导致的错误. 1.安装APR wget http://apache

出现错误日志:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

tomcat6出现错误日志: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 解决: 通过安装和配置apr解决. Tomcat Na