Error while loading shared libraries:libjli.so problem resolution

Source: Internet
Author: User

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

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.