I'm install OpenJDK Java on my Ubuntu 12.04 desktop using the following command:
sudo apt-get install openjdk-7-jdk
But I keep having java not found:
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
* gcj-4.5-jre-headless
* openjdk-7-jre-headless
Try: sudo apt-get install <selected package>
What's the reason here? I tried reinstall, even deleting /usr/lib/jvm but it still doesn't work.
There is no java in /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin, only javac and other things. Also when I run javac, this is the error:
javadoc: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
Try: sudo apt-get install <selected package>
, doesn't say nothing? – Radu Rădeanu Jun 25 '13 at 15:30