You should see something like this (you might have to scroll to find it):Īn applet will run near the bottom if you java is working correctly. In firefox, where you would type a website type: Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode) Java(TM) SE Runtime Environment (build 1.6.0_06-b02) It should work perfectly this time with no errors. Run whichever of these you used before again: so I used LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/jli dpkg -configure -a Open your File System, go Ctrl+F, search for 'libjli' The CHANGEME part should be changed to the location of libjli.so LD_LIBRARY_PATH=CHANGEME dpkg -configure -a (Copy and paste using right-click so you don't get any of them wrong)
Package ia32-sun-java6-bin is not installed.ĭpkg: error processing sun-java6-jre (-configure):Įrrors were encountered while processing:Į: Sub-process /usr/bin/dpkg returned an error code (1) Package sun-java6-bin is not configured yet.ĭpkg: error processing sun-java6-plugin (-configure):ĭependency problems - leaving unconfiguredĭpkg: dependency problems prevent configuration of sun-java6-jre: Sun-java6-plugin depends on sun-java6-bin (= 6-00-2ubuntu2) however: Subprocess post-installation script returned error exit status 127ĭpkg: dependency problems prevent configuration of sun-java6-plugin: usr/lib/jvm/java-6-sun-1.6.0.00/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directoryĭpkg: error processing sun-java6-bin (-configure): Setting up sun-java6-bin (6-00-2ubuntu2). If you are on a live CD or USB (even if it is Feisty 7.04, Gutsy 7.10, or Hardy 8.04 - I tried them all) you will probably get something like this: This is actually the method used for reasons specific to me.
Sudo apt-get install sun-java6-jdk sun-java6-plugin Sudo apt-get install sun-java6-jre sun-java6-pluginĭo this in a terminal for JDK (basically if you ARE a java developer): It will ask you to reload/refresh DO IT!ĭo this in a terminal for JRE (basically if you're not a java developer): On the 'Ubuntu Software' tab tick the multiverse and universe boxes.Ĭlick 'Close'. Go to 'System', 'Administration', 'Software Sources'. Įrror: could not find Java 2 Runtime Environment.Īdding the Multiverse and Universe Repositories Setting up sun-java6-bin (6-06-0ubuntu1).
Java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory When running Ubuntu from a live cd or live usb, and trying to install java, the following errors appear:
NOTE: This should work with Hardy Heron 8.04, Gutsy Gibbon 7.10, Feisty Fawn 7.04 and others (but definitely Hardy Heron 8.04 ).įirstly, I'm a complete noob at ubuntu, and only look like I know what I'm talking about from the research I have done trying to solve this problem. How to: Run / Install Sun Java with the Firefox Plugin on an Ubuntu Live CD or USB