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.
- So the first step is to download JDK from Oracle's site.
- Then download this bash script to the same directory where JDK is.
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!