How to install java in ubuntu 18.04 / ubuntu 18.10
Install java ubuntu 18.04
Open Terminal by Pressing Ctrl + Alt + T in your Ubuntu 18.04 / ubuntu 18.10 system
Paste the Following command in your ubuntu 18.04 / ubuntu 18.10 system to install java
1) Add the PPA
sudo add-apt-repository ppa:webupd8team/java
2) Update the Repository
sudo apt update
3) Run the Installer
sudo apt install oracle-java8-installer
If you want to install other version of Java Simply Change the Number. Example :
sudo apt install oracle-java9-installer
Now follow the OnScreen Instructions to install java in ubuntu 18.04 / ubuntu 18.10
After installation gets completed, Run the Following command to check the Version of java in ubuntu 18.04/ ubuntu 18.10
javac -version
How to Set Java environment variables in Ubuntu 18.04 / Ubuntu 18.10 ??
sudo apt install oracle-java8-set-default
If you want to install other version of Java Simply Change the Number. Example
Comments
Post a Comment