Installing Oracle Java/JDK 8 on Linux - Ubuntu 16.04,18.04

Prakash V · 363K views · 2014 · 7:32

Open on YouTube

Linux & open-source ecosystemsSoftware (other)tutorialdated

Why Ask Ubuntu recommends it

Ask Ubuntu users mostly appear in it as the tutorial they followed when a manual Java install went wrong, such as java -version still showing OpenJDK or the wrong version being active.

Recommended by 1 people across 1 different months, 2015 to 2016.

What it is

A short screencast by Prakash V showing how to install Oracle JDK 8 on Ubuntu by downloading the tarball, moving it to /usr/lib/java, registering it with update-alternatives, and setting JAVA_HOME and PATH in ~/.bashrc. It also mentions the webupd8team PPA as an easier route.

What people said

Recommends Alkarin · 2015-10 · Ask Ubuntu · on “java -version pulling up wrong version”

First off I'm using Ubuntu 14.04 I was following this video [this video] to set up a Java JDK and at the end he uses java -version to see his current version number. The Version I installed was 1.8.0_66 but mine returns java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) But when I check for the JAVA_HOME that seems to be correct user@user:~$ $JAVA_HOME bash: /usr/lib/java/jdk1.8.0_66: Is a directory Where have I gone wrong? The additional resource he uses in the video is this [LINK] and I feel like step 5 is maybe where things are going haywire, even though I do update the file name version befor

Cites nubb · 2015-03 · Ask Ubuntu · on “Java 7 and 8 install problem”

I installed java following this tutorial that and the tutorial made me go to this certain file with path variables or something. To play Runescape I need java 7 so I need to switch. I have installed java 7 with a tutorial on this site but im still on jjava 8 for some reason. How exactly do i get java 7 enabled for this game? The video: [this video] Ubuntu 13.10

Cites hungry-programmer · 2016-01 · Ask Ubuntu · on “Trying to install JDK”

I'm trying to install JDK on ubuntu 14.04 LTS. I downloaded it from oracle website. Than I extracted it and moved in usr/lib/java . It says java doesn't exist but it does. [LINK] I use this video [this video]