Wednesday, 14 September 2016

How to install JAVA using command line

















1. Java-1.6

Install Java-1.6 using below command

sudo apt-get install openjdk-6-jdk

Verify Java-1.6 using below command

java -version


2. Java-1.7

Install Java-1.7 using below command

sudo apt-get install openjdk-7-jdk

Verify Java-1.7 using below command

java -version


3. Java-1.8

Install Java-1.8 using below commands

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk

Verify Java-1.8 using below command

java -version

Share this article with your friends.
Related Posts Plugin for WordPress, Blogger...