I'm running Ubuntu 14.04. I'm trying to install Oracle java 8. I downloaded the .rpm file published by Oracle: jdk-8u20-linux-x64.rpm and then ran the following commands trying to install it:
$ sudo alien jdk-8u20-linux-x64.rpm --scripts $ sudo dpkg -i jdk1.8.0-20_1.8.020-1_amd64.deb
Those two commands seem to be working ok, and then I try to point java to default to this one, using the following command that fails: $ sudo update-java-alternatives -s java-8-oracle I get the message below:
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-8-oracle
I tried to see what versions are available:
$ sudo update-java-alternatives -l java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
Any ideas what may be wrong?