For the installation of java 8 in ubuntu there are two options:
1)Open JDK
2)Oracle JDK
For most of the applications that need java for working inside ubuntu you could use Open JDK because it is available in your Ubuntu Software Center and if you want to install using terminal then execute the following command
sudo apt-get install openjdk-8-jdk
If you are more of developers then it is sometimes suitable for using Oracle. Eg: in android it sometimes specifically ask for Oracle java.Then the most easy method is to install using terminal.
Follow the commands line by line:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
apt-get install oracle-java8-installer
even though java 9 is available at this time but the repository warns and asks us to download only if we need java 9 itself or else prefer the java8 for installation.
1)Open JDK
2)Oracle JDK
For most of the applications that need java for working inside ubuntu you could use Open JDK because it is available in your Ubuntu Software Center and if you want to install using terminal then execute the following command
sudo apt-get install openjdk-8-jdk
If you are more of developers then it is sometimes suitable for using Oracle. Eg: in android it sometimes specifically ask for Oracle java.Then the most easy method is to install using terminal.
Follow the commands line by line:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
apt-get install oracle-java8-installer
even though java 9 is available at this time but the repository warns and asks us to download only if we need java 9 itself or else prefer the java8 for installation.
No comments:
Post a Comment