We’re going to show you Step of Installation Java 1.8 version on Ubuntu in the form of tar Package. First, you will need to download Java from the official site of Oracle. you can install Java 8 using the command in ubuntu. ubuntu install javafx 8
Jave is now the most powerful programming language. you will need it to make any applications, software because millions of devices run on Java. you can directly install using the single command.
You can easily install java 8 on ubuntu using the below methods. Let’s see, how to install java 8 on ubuntu and ubuntu java 8.
Step of Installation Java 1.8 Version:
apt-get install java-1.8* -y
I would like to install using the below method if it does not work with single commands. you can download Java from here
Check Out: GET Command Not Found In Linux
Step 1: Extract the tar file at any location
tar -xzf jre-8u181-linux-x64.tar.gz
Step 2: Go to the location where it has been extracted and reach this location
Check Out: How To Clear Cache In Linux
I have installed java in /opt directory then you have to run following commands to achieve this.
sudo update-alternatives --install /usr/bin/java java /opt/jre1.8.0_181/bin/java 1 sudo update-alternatives --install /usr/bin/javaws java /opt/jre1.8.0_181/bin/java 1
Note: If you see javac there you can also install it in the same way.
Step 3: Now java installed on your system. Check it by
Check Out: Install Memcached In Linux
Install Java 8 In Ubuntu:
you can use the below command to install the OpenJDK 8 version. This will install the default java which is available on the server.
sudo apt install openjdk-8-jdk
When you try to install using the PPA repository but this doesn’t work for ubuntu 20.04. So, you can add the below repository.
sudo add-apt-repository ppa:webupd8team/java sudo apt update
If you want to install Oracle Java 8 version, use the below commands.
sudo apt install oracle-java8-installer
This command will install and make it the default Java on the systems.
sudo apt install oracle-java8-set-default
YouTube Link: Java 1.8
You’re done install java 8 in ubuntu