
:~# add-apt-repository ppa:webupd8team/java
Install openjdk 1.8 ubuntu 16.04 archive#
Webupd8 Team is maintaining a PPA repository with installer scripts for the latest Java 8 and 9, that automatically downloads the Java archive from Oracle website and sets up everything for you.
Install openjdk 1.8 ubuntu 16.04 install#
If you want to install the Oracle JDK, the official version distributed by Oracle, you have to follow few more steps.įirst, add Oracle' s PPA, then update your package repository. Setting up default-jdk (2:1.8-56ubuntu2). Libice-doc libsm-doc libxt-doc openjdk-8-demo openjdk-8-source visualvmĭefault-jdk default-jdk-headless libice-dev libsm-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headlessĠ upgraded, 7 newly installed, 0 to remove and 494 not upgraded.Īfter this operation, 41.4 MB of additional disk space will be used. :~# apt-get install default-jdkĭefault-jdk-headless libice-dev libsm-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headless

The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size. The JDK is needed only if you are going to compile Java programs or if the software that will use Java specifically requires it. You can install the JDK with the following command: There is another default Java installation called the JDK (Java Development Kit).

Processing triggers for libc-bin (2.23-0ubuntu3). Setting up default-jre (2:1.8-56ubuntu2). Libgnome-2-0 libgnome2-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0 openjdk-8-jreĠ upgraded, 13 newly installed, 0 to remove and 494 not upgraded.Īfter this operation, 104 MB of additional disk space will be used. The following NEW packages will be installed:Ĭa-certificates-java default-jre default-jre-headless java-common libbonobo2-0 libbonobo2-common Ttf-wqy-microhei | ttf-wqy-zenhei fonts-indic Gnome-mime-data icedtea-8-plugin openjdk-8-jre-jamvm fonts-ipafont-gothic fonts-ipafont-mincho Libgnome2-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0 openjdk-8-jre openjdk-8-jre-headlessĭefault-java-plugin libbonobo2-bin desktop-base libgnomevfs2-bin libgnomevfs2-extra gamin | fam The following additional packages will be installed:Ĭa-certificates-java default-jre-headless java-common libbonobo2-0 libbonobo2-common libgnome-2-0

this command installs the Java Runtime Environment (JRE).
