Install Oracle JDK 7 in 3 simple steps

This article shows how to install or update Oracle JDK 7 in semiautomatic way under Linux operating systems, including Ubuntu, Debian and CentOS. Semi is because Oracle has its proprietary license you have to accept before downloading.

  1. So the first step is to download JDK from Oracle's site.
  2. Then download this bash script to the same directory where JDK is.
  3. Run the script as sudoer:

    sudo bash oracle-jdk-7-update.sh
    

If in the end of output you see something like

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

then Oracle JDK 7 was successfully installed. Congratulations!

Tagged as : Java Linux Debian Ubuntu

Comments