Java Installation in Ubuntu 18.04
- March 28, 2019
- by
In this blog, i will share with you how to install Java in your ubuntu via terminal.
So lets begin :-
Step 1:- In Linux java is termed as Open JDK as its an open source. So the name for java in the command is mostly openjdk followed by its version number. so it will be openjdk-8-jdk.
So open the terminal by right clicking on the desktop and enter the following command to begin the installation process of java.
sudo apt-get install openjdk-8-jdk
Explanation of the command:-
1. sudo
As we see in the command the sudo refers to super user that is administrator or root user of the system. We mostly use sudo command to give administrator rights to our operations.
2. apt-get
apt-get is usually used to directly download files from the server or website.
3. install
install command is used to perform installation on the specified file
4. openjdk-8-jdk
It is the java jdk file which will be fetched from the website to be installed on the ubuntu system.
Step 2 :- After the installation completes. You have to type in the terminal a command to check that java is installed or not. The command is java -version. It specifies that the java is installed on the system and it has the current version shown by its version number.
So lets begin :-
Step 1:- In Linux java is termed as Open JDK as its an open source. So the name for java in the command is mostly openjdk followed by its version number. so it will be openjdk-8-jdk.
So open the terminal by right clicking on the desktop and enter the following command to begin the installation process of java.
sudo apt-get install openjdk-8-jdk
Explanation of the command:-
1. sudo
As we see in the command the sudo refers to super user that is administrator or root user of the system. We mostly use sudo command to give administrator rights to our operations.
2. apt-get
apt-get is usually used to directly download files from the server or website.
3. install
install command is used to perform installation on the specified file
4. openjdk-8-jdk
It is the java jdk file which will be fetched from the website to be installed on the ubuntu system.
Step 2 :- After the installation completes. You have to type in the terminal a command to check that java is installed or not. The command is java -version. It specifies that the java is installed on the system and it has the current version shown by its version number.
When you see such an output after typing the command as shown in the image above then you get a confirmation about the successful installation of the java with its version number on your ubuntu system.



0 comments:
Post a Comment