I want to install Oracle JDK on my Ubuntu 14.04. I tried using webupd8's method. The installer worked fine but the when I type java -version
I get:
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
I even did sudo update-alternatives --config java
and tried changing the Java that I use to Oracle's java but when I run java -version
I still get the same IcedTea version. How do I switch the java that I use to Oracle's version?