Sunday, April 27, 2014

Install Oracle JDK in Ubuntu

Sunday, April 27, 2014 Posted by Andre Broers ,
While installing OpenJDK in Ubuntu is simple, installing the Oracle variant is a little more complicated. Because some installations prefer the Oracle (Sun) version of the JDK I will explain the installation of the Oracle (Sun) version of the JDK.

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

After accepting the Oracle licenses the installation will start. When finished you will be able to use the java binaries:

azureuser@mygo01:~$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)