How to install Java 8 on Ubuntu | List of commands
18:30
In this blog, we are going to see
Method references − Referencing functions by their names instead of invoking them directly. Using functions as parameter.
Default method − Interface to have default method implementation.
New tools − New compiler tools and utilities are added like ‘jdeps’ to figure out dependencies.
Stream API − New stream API to facilitate pipeline processing.
Date Time API − Improved date time API.
Optional − Emphasis on best practices to handle null values properly.
Nashorn, JavaScript Engine − A Java-based engine to execute JavaScript code.
Update your linux first
To check the device Architecture
Install aptitude
Search for JDK for Ubuntu using aptitude
Install openjdk-8-jdk openjdk-8-jre
Set openjdk-8-jre as default version
Again update and upgrade your device
Verify java version if it says 11 run another command
Hit command below and select option for java 8
list of commands to install OpenJDK-8-JDK on ubuntu
. To install OpenJDK ubuntu all you need to do is follow the command in your terminal and get it installed.Key Features of Java8
Lambda expression − Adds functional processing capability to Java.Method references − Referencing functions by their names instead of invoking them directly. Using functions as parameter.
Default method − Interface to have default method implementation.
New tools − New compiler tools and utilities are added like ‘jdeps’ to figure out dependencies.
Stream API − New stream API to facilitate pipeline processing.
Date Time API − Improved date time API.
Optional − Emphasis on best practices to handle null values properly.
Nashorn, JavaScript Engine − A Java-based engine to execute JavaScript code.
If you face any errors just let me know. I'll be glad to provide you with solutions. Java 8 is a Long Term Support version and this is the main reason java is in demand. None of us can deploy our company systems on non-LTS java support. If you need longer support then you need to install Java 8 which is quite handy if you have the
Correct list of commands sot install java in Linux
List of commands to install java 8 is listed below
To check the pri-installed Java Version
$ java -version
Update your linux first
$ sudo apt-get update && sudo apt-get upgrade
To check the device Architecture
$ hostnamectl|tail -1
Install aptitude
$ sudo apt-get install -y aptitude
Search for JDK for Ubuntu using aptitude
$ sudo aptitude search jdk
Install openjdk-8-jdk openjdk-8-jre
$ sudo apt install openjdk-8-jdk openjdk-8-jre
Set openjdk-8-jre as default version
$ sudo apt install openjdk-8-jdk openjdk-8-jre -set-default
Again update and upgrade your device
$ sudo apt-get update && sudo apt-get upgrade
Verify java version if it says 11 run another command
$ java -version
Hit command below and select option for java 8
$ sudo update-alternatives --config javaIf you want to keep List of commands to install openjdk-8 ubuntu please bookmark us. Visit for the more detaild article