I tried installing openjdk6, openjdk7, oracle8... But always the same error when I want to execute java, for example with
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
I tried with symbolic links trying to get to recognize
libjli.so but it didn't work
After uninstalling all versions, following the steps shown here How to completely uninstall Java? , and installing again, can't make the error disappear. Even if I uninstall it all again, if I write in terminal
java -version it stills throw me the same error.
I'm doing all of this with user sudo.
EDIT: Using Ubuntu 14.04 LTS Server
EDIT 2: Installing Openjdk7, Oracle7 and Oracle8, using
update-alternatives --config java tells me that (in Spanish, but I'll try to translate, 3 lines of information)
"there is only one alternative in the group of java links in
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java Nothing to configure."
"update-alternatives: warning: forcing reinstallation of alternative
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java because the Java links' group is broken"
/usr/bin/java will not be substituted by a link"