jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file o
来源:互联网 发布:windows xp32纯净版 编辑:程序博客网 时间:2024/06/03 13:25
error while loading shared libraries: libjli.so 问题解决
标签:执行javaloadingshared error
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://2358205.blog.51cto.com/2348205/961336
问题描述:
执行jar命令,javac命令执行报错
javac: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
java:error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
解决方案:
rm -rf /usr/bin/javac
rm -rf /usr/bin/jar
rm -rf /usr/bin/java
然后建立软链
ln -s /usr/local/jdk1.6.0_13/bin/javac /usr/bin/javac
ln -s /usr/local/jdk1.6.0_13/bin/jar /usr/bin/jar
然后建立软链
ln -s /usr/local/jdk1.6.0_13/bin/javac /usr/bin/javac
ln -s /usr/local/jdk1.6.0_13/bin/jar /usr/bin/jar
ln -s /usr/local/jdk1.6.0_13/bin/javac /usr/bin/java
分析原因:
原来安装的时候,安装了openjdk,卸载的时候可能这些执行文件没卸载掉.
导致不能使用.
所以将/usr/bin/下的老执行文件删除掉就能执行了.
查找libjli.so文件
find / -name libjli.so
ldd /usr/bin/java
mv /usr/local/jdk1.6.0_13/jre/lib/i386/jli/libjli.so /lib
原文来自:http://2358205.blog.51cto.com/2348205/961336
- jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file o
- jps: error while loading shared libraries: libjli.so: cannot open shared object file: No such file..
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file.....
- error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
- error while loading shared libraries: XXX.so: cannot open shared object file: No such file...
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file
- Error: while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.7.5: cannot open shared object file: No such file
- error while loading shared libraries: libmkl_rt.so: cannot open shared object file: No such file or
- aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file
- error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file
- error while loading shared libraries: ***.so: cannot open shared object file: No such file or direct
- 杭电1010Tempter of the Bone(搜索)
- 解决Install ncurses(ncurses-devel) and try again错误
- android gson的使用
- 订餐系统之定时器Timer不定时
- hdu 数塔。
- jar: error while loading shared libraries: libjli.so: cannot open shared object file: No such file o
- Mapper映射语句——Mybatis的真正力量
- Ceph的基石CRUSH算法与一致性哈希( by quqi99 )
- 【练习03】 KMP 1003 Cyclic Nacklace
- 关于GetUserName的用法及参数含义
- Erlang学习记录(二)——基本数据类型
- 《给你的演讲加点儿“怪”味 》--演讲与口才
- SPOJ MSTS: Count Minimum Spanning Trees
- VS安装包注册com组件