java 罕见的依赖报错 jstat: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

java 都用了N长时间了,突然,意外地发现有一个依赖的so文件从来没找见过

# ldd /usr/bin/java
 linux-vdso.so.1 =>  (0x00007fffba769000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038c4000000)
 libjli.so => not found
 libdl.so.2 => /lib64/libdl.so.2 (0x0000003da7c00000)
 libc.so.6 => /lib64/libc.so.6 (0x0000003da7400000)
 /lib64/ld-linux-x86-64.so.2 (0x0000003da6c00000)

其实这个so文件在java的安装包中是有的,只是没有添加了ld_path 里面,解决办法:

# rpm -ql jdk1.8.0_45|grep libjli
/usr/java/jdk1.8.0_45/jre/lib/amd64/jli/libjli.so
/usr/java/jdk1.8.0_45/lib/amd64/jli/libjli.so

然后,将/usr/java/jdk1.8.0_45/jre/lib/amd64/jli/  或 /usr/java/jdk1.8.0_45/lib/amd64/jli/ 添加到文件: /etc/ld.so.conf 中,然后执行ldconfig 即可

最后,libjli.so 是个啥玩意儿,为啥从来没找见过,却也从来没报错过?

留档备查,感谢神人提供

转自:

http://www.tuicool.com/articles/ruYzemZ

时间: 2024-12-28 17:46:07

java 罕见的依赖报错 jstat: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory的相关文章

Nginx 启动报错 (nginx: error while loading shared libraries: XXX: cannot open shared object file: No such file or directory ) 的解决办法

本文解决 Nginx 因库文件缺失而无法启动问题 没有采用缺失什么就安装什么的解决办法, 而是借助于另一个正常运行的Linux , 将其上的库文件发送给缺失库文件的 Linux 服务器 以 缺失  libharfbuzz.so.0 为例 , 其它库文件缺失 大同小异 前提摘要: 今天打开我的网址 www.cheery.pro 时发现,  多次重试也没反应, 这可怎么办? 这是怎么回事 问题探究: ping了一下服务器发现可以ping通,  于是猜测可能是Nginx 出现了问题, 打开宝塔面板,

解决ffmpeg执行报错“ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory”的问题

问题现象: 执行ffmpeg命令后报错: ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory 出问题的环境信息为: Fedora release 31 (Thirty One) ffmpeg-4.2.1 官方源码编译 看下需要哪些依赖: ldd ffmpeg 可以看到缺失的依赖 我们找下这些文件在哪里 f

linux下报错:error while loading shared libraries

linux执行bin程序报: error while loading shared libraries:libncurses.so.5: cannot open shared object file: No such file or directory 解决方法: yum -y install libncurses.so.5 安装这个库之后有可能报: error while loading shared libraries:libstdc++so.6: cannot open shared ob

安装ogg时,执行./ggsci报错./ggsci:error while loading shared libraries:libnnz10.so......

1.虚拟机服务器版本: [oracle@localhost ~]$ cat /proc/version Linux version 2.6.32-300.10.1.el5uek (mockbuild@ca-build56.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Wed Feb 22 17:22:40 EST 2012 2.服务器数据库版本: SQL> select * from v$version

error while loading shared libraries: libjli.so 问题解决

问题描述: 执行jar命令,javac命令执行报错 javac: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or director

针对Flex+Java使用RemoteObject通讯 报错Channel.Connect.Failed error NetConnection.Call.Failed 404

今天在Flex中使用RemoteObject进行java调用时,报错 [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/UnitCi

Kafka日志报错:[error] k.m.j.KafkaJMX$ - Failed to connect to service:jmx:rmi:///jndi/rmi://10.1.3.116:-1/jmxrmi java.lang.IllegalArgumentException: requirement failed: No jmx port but jmx polling enabled!

一.Kafka日志报错:[error] k.m.j.KafkaJMX$ - Failed to connect to service:jmx:rmi:///jndi/rmi://10.1.3.116:-1/jmxrmi java.lang.IllegalArgumentException: requirement failed: No jmx port but jmx polling enabled! 以上报错,并没有对Kafka对使用造成直接影响: 1>.启动生产者:kafka-console

java安装1.8和1.7,报错:Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVers

进入:C:\ProgramData\Oracle\Java\javapath; 删除:java.exe.javaw.exe.javaws.exe 删除:path的C:\ProgramData\Oracle\Java\javapath; 然后可能还会不行 进入:C:\Windows\System32 删除:java.exe.javaw.exe.javaws.exe 注意:\ProgramData可能是隐藏文件夹. java安装1.8和1.7,报错:Error: Registry key 'Soft

java数据库执行迁移报错Error creating bean with name 'flywayInitializer' defined in class path resource

报错原因 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocati