Oracle JAVA JDK9 was released long time ago, but still not many Java application support it yet… JDK8 is still popular and supported by more apps… Now there’s a new Java JDK10 from Oracle… which can be installed easily on Ubuntu via this third party PPA…
If you’re going to be installing tools like NetBeans and Eclipse to manage your JAVA based projects, you’ll probably still need JDK8 installed since it’s still useful for many of these apps… I’m not too sure about JDK10 as to how many applications support it…. If you want to test it out, you can surely do it by installing it…
If you need to get JDK10 installed on Ubuntu 16.04 / 17.10 and 18.04, the steps below should be a great place to start… This post shows students and new users how to get Oracle Java JDK10 / JRE via PPA on Ubuntu 16.04 | 17.10 | 18.04 desktop computers.
Oracle Java JDK is a development environment for developing applications and tools based on Java. It can also be used for testing applications and program developed using the Java programming language.
There’s also an alternative open source version of JAVA JDK called OpenJDK / JRE, however, many applications already developed still rely on the Oracle version of the software…
To install Java JDK10, follow the steps below:
Step 1: Add A Third Party PPA to Ubuntu
The easiest way to install Oracle Java JDK 10 on Ubuntu is via a third party PPA… To add that PPA, run the commands below
sudo add-apt-repository ppa:linuxuprising/java
After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue
Continue below to install Java 10…
Step 2: Download Oracle Java 10 Installer
Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 10 installer…. the installer should install the latest Java JDK 10 on your Ubuntu machines.
sudo apt update sudo apt install oracle-java10-installer
When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue..
Step 3: Configure Oracle JDK10 as Default
Set Oracle JDK8 as default, to do that, install the oracle-java10-set-default package. This will automatically set the JAVA env variable.
sudo apt install oracle-java10-set-default
The command above will automatically set Java 10 as the default… and that should complete your installation, you can check you java version by running following command.
That’s it! You have successfully installed Oracle Java JDK 8 on Ubuntu 16.04 | 17.10 | 18.04 via PPA
You may also like the post below: