Jar:error while loading shared libraries:libjli.so:cannot open Shared object file:no such file O__java

Source: Internet
Author: User
Error while loading shared libraries:libjli.so problem Resolution 2012-08-12 14:13:16 Tags: execute java loading shared error original works, allow reprint, reprint, please be sure The original source of the article, the author's information and this statement are indicated in the hyperlink form. Otherwise, legal liability will be held. http://2358205.blog.51cto.com/2348205/961336
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

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 build 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:
The original installation of the time, the installation of the OPENJDK, uninstall may be the implementation of these files did not unload.
Cause it cannot be used.
So 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 Original from: http://2358205. blog.51cto.com/2348205/961336

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.