![]() ![]() Įirst check your existing java installation with the java command - $ java -version The package downloads the latest oracle java builds in the background and then installs and configures it. OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) sudo apt-get install openjdk-7-jdk Installing Oracle JDK (optionally) Oracle JDK is an official JDK but, now, Oracle doesn't support it like default for installation in Ubuntu. In the above example OpenJDK is installed already, and is going to be replaced with Oracle Java. The following steps should work on Ubuntu 15.10 or Linux Mint 17 and other similar Ubuntu based linux distros. ![]() This first thing to do is to setup the webupd8 ppa on your system. $ sudo apt-add-repository ppa:webupd8team/javaĪfter setting up the ppa repository, update the package cache as well. Now install the package named "oracle-java8-installer". This installer is going to download the actual Oracle JDK from the Oracle website. It should finish in a couple of minutes depending on your internet speed $ sudo apt-get install oracle-java8-installerĪfter the installation is finished, Oracle Java is setup. Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Run the java command again to check the version and vendor. The ppa repository contains another package, that sets Oracle Java as the default java runtime. Install it with the following command - $ sudo apt-get install oracle-java8-set-default Notes One alternative Java install is with Open JRE 7 and JDK 7 and can be installed with one of the following: sudo apt install openjdk-7-jre sudo apt install openjdk-7-jdk Install Java Oracle JRE or JDK on Ubuntu 16.04. Another alternative Java install is with Oracle JRE and JDK. You might prefer to remove the existing OpenJDK package before installing Oracle Java. To remove the OpenJDK packages run the following command - $ sudo apt-get purge openjdk-* A sudo non-root user, which you can set up by following the Ubuntu 16.04 initial server setup guide. The easiest option for installing Java is using the version packaged with Ubuntu. Specifically, this will install OpenJDK 8, the latest and recommended version. If you wish to install Oracle Java manually using the packages from Oracle's website then check out this tutorial on stackoverflow over here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |