In this install java 7 ubuntu guide, I’m going to show you how to download and install OpenJDK java 7 on ubuntu. - OpenJDK Community Version
OpenJDK is the short form of Open Java Development Kit similar to Oracle's Java Development Kit used to develop Java Applications. Main difference between Oracle JDK and OpenJDK is that OpenJDK is free for all while Oracle Java Development Kit or Oracle JDK requires commercial license.
If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.
To download open jdk 7, Go to https://download.java.net/openjdk/ and download the openjdk-7-jdk tar distribution openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz. Here is the quick lik to download the openjdk-7-jdk tar file openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
To Install OpenJDK 7 Java Runtime - Enter the below command on Ubuntu command line to install jre 7 ubuntu.
$ sudo apt-get install openjdk-7-jre
$ sudo apt-get install openjdk-7-jdk
Once the above steps are successfully completed , we need to set JAVA_HOME Path Ubuntu environment variables. Enter the following commands to set your environment variables. Make sure that your environment variables point to a valid installation of JDK on your Ubuntumachine.
Once the OpenJDK 7 Download and installation is complete, we can verify the installed OpenJDK 7 version using below Command.
Go to Ubuntu prompt and type java -version The above command prints the OpenJDK 7 version you installed.
Here are the ubuntu openjdk packages you might be interested in!
Ubuntu package openjdk-8-jdk
Ubuntu package openjdk-9-jdk
Ubuntu package openjdk-11-jdk
Ubuntu package openjdk-13-jdk
Ubuntu package openjdk-14-jdk
Ubuntu package openjdk-15-jdk
If you are looking out for earlier OpenJDK versions, go to OpenJDK Archive