Error While Loading Shared Libraries: Libjli.So in Java

Error while loading shared libraries during Java 1.6 Configuration in ubuntu

The above issue is due to missing command

sudo ./jdk-6u45-linux-x64.bin

Then copy command should be there.

jar: error while loading shared libraries: libjli.so [How to manually install Java 6]

I'm posting my solution on here in case anyone else runs into a similar problem and stumbles across this. I simply re-installed my OS, ran the steps again, and everything worked perfectly fine this time. I must have caused some sort of error on my machine as I ran the same exact steps too. Here is what I did to manually install Java 6 on a clean machine:

  1. Install Java 6(.bin format) from the Oracle website
  2. Give it executable permissons and execute it
  3. Add a jvm folder to usr/lib/
  4. Move your Java 6 folder to usr/lib/jvm
  5. Link java/javaws/javac to usr/bin using the ln -s command
  6. Add your Java6 and Java/bin location to your path. For me its:

    export JAVA_HOME=usr/lib/jvm/jdk1.6.0_45

    export PATH=/usr/bin:$JAVA_HOME/bin

Error while loading shared libraries; cannot open shared object file: No such file or directory

I got this problem because my shared libraries depends on another shared library which works improperly.



Related Topics



Leave a reply



Submit