首页 > 文章 > WEB > tomcat > 正文

not found on the java.library.path 解决方案
2011-03-01 00:35:38   来源:   评论:0 点击:

not found on the java.library.path 解决方案

not found on the java.library.path 解决方案

收集整理:linuxzgf 欢迎大家转载运维家园文章到自己的网站/博客/微博,请勿修改原文内容,谢谢!

linux下Tomcat启动错误提示,并无法启动:
The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path

后在网上找到了解决方案:

tomcat bin目录中有 tomcat-native.tar.gz解压
[root@localhost bin]# cd /opt/tomcat5.5/bin
[root@localhost bin]# tar zxf tomcat-native.tar.gz
[root@localhost bin]# cd bin/tomcat-native-1.1.16-src/jni/native/
[root@localhost bin]# ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/java/jdk1.5/ 
[root@localhost bin]# make
[root@localhost bin]# ls .libs  查看相应的文件是否生成
[root@localhost bin]# make install   (要记得权限  sudo )
[root@localhost bin]# ls /usr/local/apr/lib   查看是否成功
[root@localhost bin]# vi bin/catalina.sh

CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"   加到这个文件中

相关热词搜索:not found on the java.library.path

上一篇:Tomcat报错:DBCP object created by the following code was never
下一篇:最后一页

分享到: 收藏
频道总排行
频道本月排行