search

Wednesday, 22 March 2017

How to install Oracle jdk1.8 in Ubuntu14.04 System using terminal

How to install Oracle jdk1.8 in Ubuntu14.04 System using terminal :



open terminal by pressing ctrl+alt+t

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

java -version

//java Welcome program

public class Welcome {
public static void main (String [] args) {
System.out.println("Welcome to Java!");
}
}

No comments:

Post a Comment