Problem Description:
Execute jar command, javac command to execute error
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 directory
Java:error while loading shared libraries:libjli.so:cannot open Shared object file:no such file or directory
Solution:
Rm-rf/usr/bin/javac
Rm-rf/usr/bin/jar
Rm-rf/usr/bin/java
Then set up the soft chain
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
Analysis Reason:
Originally installed, the installation of OPENJDK, uninstall the time may be the execution of these files are not uninstalled.
Cause not to be used.
Therefore, the old execution files under the/usr/bin/can be removed and executed.
Find libjli.so files
Find/-name libjli.so
Ldd/usr/bin/java
Mv/usr/local/jdk1.6.0_13/jre/lib/i386/jli/libjli.so/lib
This article is from the "Silent Little Fish" blog, please be sure to keep this source http://4838832.blog.51cto.com/4828832/1682315
Error while loading shared libraries:libjli.so problem resolution