Why does command 'ldd /usr/bin/java' throws error 'libjli.so => not found' ?

Solution Unverified - Updated -

Issue

  • Command ldd /usr/bin/java not able to find libjli.so
# ldd /usr/bin/java
        linux-vdso.so.1 =>  (0x00007fff8a481000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x000000389a800000)
        libjli.so => not found                                                <---- library not found
        libz.so.1 => /lib64/libz.so.1 (0x000000389b800000)
        libdl.so.2 => /lib64/libdl.so.2 (0x000000389a000000)
        libc.so.6 => /lib64/libc.so.6 (0x000000389a400000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003899c00000)

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • java-1.8.0-openjdk
  • libjli.so

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.