How to Install Oracle JAVA 8 (JDK/JRE 8u121) on Ubuntu & LinuxMint with PPA
Oracle JAVA 8 Stable release has been released on Mar,18 2014 and available to download and install on official download page. The PPA of Oracle Java for Ubuntu and LinuxMint is being maintained by Webupd8 Team. JAVA 8 is released with many of new features and security updates, read more about whats new in Oracle Java 8:
– First of all you need to add webupd8team Java PPA repository in your system. After that install, Oracle Java 8 using following a set of commands:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
– After successfully installing oracle Java using above step verify installed version using the following command:
mmd@DN-SeC:~$ java -version
java version “1.8.0_121”
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode, sharing)
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode, sharing)
– Also, install java configuration package. It seems like below package is already installed with latest operating systems during installation of JAVA packages. But you can still make sure by running below command:
$ sudo apt-get install oracle-java8-set-default
– Now edit /etc/environment configuration file and add following entries to set JAVA_HOME and JRE_HOME environment variables:
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
Excellent post !!!Everyone are repeating the same concept in their blog, but here I get a chance to know new things . I will also suggest your content to my friends.
ReplyDeleteJ2EE Training in Chennai
JAVA Training Chennai